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 -- Autosave
["<C-s>"] = { "<cmd>ASToggle<cr>", desc = "Toggle autosave" }, ["<C-s>"] = { "<cmd>ASToggle<cr>", desc = "Toggle autosave" },
-- quick save -- quick save
-- ["<C-s>"] = { ":w!<cr>", desc = "Save File" }, -- change description but the same command -- ["<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 -- setting a mapping to false will disable it
-- ["<esc>"] = false, -- ["<esc>"] = false,
}, },
v = {
-- Carbon code sharing
["<leader>c"] = { ":CarbonNow<CR>", desc = "Share code on Carbon", silent = true },
},
i = { i = {
-- ["<Tab>"] = { "copilot#Accept('<CR>')", silent = true, expr = true }, -- ["<Tab>"] = { "copilot#Accept('<CR>')", silent = true, expr = true },
} }
@ -304,6 +310,12 @@ local config = {
-- You can also add new plugins here as well: -- You can also add new plugins here as well:
-- Add plugins, the packer syntax without the "use" -- Add plugins, the packer syntax without the "use"
{ "andweeb/presence.nvim" }, { "andweeb/presence.nvim" },
{ "ellisonleao/carbon-now.nvim",
event = "BufRead",
config = function()
require('carbon-now').setup()
end,
},
-- { -- {
-- "ray-x/lsp_signature.nvim", -- "ray-x/lsp_signature.nvim",
-- event = "BufRead", -- event = "BufRead",