From 53d1db8abc7838e92fe747be7001637c8d35d8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Tue, 21 Feb 2023 00:08:58 +0100 Subject: [PATCH] Add carbon-now.nvim for sharing code --- init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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",