diff --git a/init.lua b/init.lua index 9d8eac1..b216796 100644 --- a/init.lua +++ b/init.lua @@ -284,6 +284,7 @@ local config = { -- Autosave [""] = { "ASToggle", desc = "Toggle autosave" }, + -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command }, @@ -291,6 +292,11 @@ local config = { -- setting a mapping to false will disable it -- [""] = false, }, + v = { + -- Carbon code sharing + ["c"] = { ":CarbonNow", desc = "Share code on Carbon", silent = true }, + + }, i = { -- [""] = { "copilot#Accept('')", silent = true, expr = true }, } @@ -304,6 +310,12 @@ local config = { -- You can also add new plugins here as well: -- Add plugins, the packer syntax without the "use" { "andweeb/presence.nvim" }, + { "ellisonleao/carbon-now.nvim", + event = "BufRead", + config = function() + require('carbon-now').setup() + end, + }, -- { -- "ray-x/lsp_signature.nvim", -- event = "BufRead",