Add carbon-now.nvim for sharing code
This commit is contained in:
parent
7235e49032
commit
53d1db8abc
12
init.lua
12
init.lua
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user