Add carbon-now.nvim for sharing code

This commit is contained in:
Jiří Štefka 2023-02-21 00:08:58 +01:00
parent 7235e49032
commit 53d1db8abc

@ -284,6 +284,7 @@ local config = {
-- Autosave
["<C-s>"] = { "<cmd>ASToggle<cr>", desc = "Toggle autosave" },
-- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command
},
@ -291,6 +292,11 @@ local config = {
-- setting a mapping to false will disable it
-- ["<esc>"] = false,
},
v = {
-- Carbon code sharing
["<leader>c"] = { ":CarbonNow<CR>", desc = "Share code on Carbon", silent = true },
},
i = {
-- ["<Tab>"] = { "copilot#Accept('<CR>')", 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",