From 2b1877fb6d8db53b099fe3bbedad3ddcfb82e5aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 17 Jan 2024 10:28:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20carbon-now=20ex?= =?UTF-8?q?tra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit replaces rayso for screenshotting code --- .config/nvim/.github/README.md | 2 +- .config/nvim/lazyvim.json | 4 ++-- .config/nvim/lua/plugins/extras/editor/carbon-now.lua | 7 +++++++ .config/nvim/lua/plugins/extras/editor/rayso.lua | 11 ----------- 4 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 .config/nvim/lua/plugins/extras/editor/carbon-now.lua delete mode 100644 .config/nvim/lua/plugins/extras/editor/rayso.lua diff --git a/.config/nvim/.github/README.md b/.config/nvim/.github/README.md index 10b0374e..cdb17ccd 100644 --- a/.config/nvim/.github/README.md +++ b/.config/nvim/.github/README.md @@ -329,6 +329,7 @@ - [andweeb/presence.nvim](https://dotfyle.com/plugins/andweeb/presence.nvim) - [edluffy/hologram.nvim](https://dotfyle.com/plugins/edluffy/hologram.nvim) +- [ellisonleao/carbon-now.nvim](https://dotfyle.com/plugins/ellisonleao/carbon-now.nvim) @@ -412,7 +413,6 @@
🐌 Snippet -- [TobinPalmer/rayso.nvim](https://dotfyle.com/plugins/TobinPalmer/rayso.nvim) - [L3MON4D3/LuaSnip](https://dotfyle.com/plugins/L3MON4D3/LuaSnip) - [chrisgrieser/nvim-scissors](https://dotfyle.com/plugins/chrisgrieser/nvim-scissors) - [mrcjkb/haskell-snippets.nvim](https://dotfyle.com/plugins/mrcjkb/haskell-snippets.nvim) diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index 30f5b80f..3eba0da2 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -26,6 +26,7 @@ "plugins.extras.dap.core", "plugins.extras.dap.persistent-breakpoints", "plugins.extras.dap.telescope", + "plugins.extras.editor.carbon-now", "plugins.extras.editor.color", "plugins.extras.editor.compiler", "plugins.extras.editor.dev-container", @@ -107,5 +108,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/editor/carbon-now.lua b/.config/nvim/lua/plugins/extras/editor/carbon-now.lua new file mode 100644 index 00000000..b3f5dc6a --- /dev/null +++ b/.config/nvim/lua/plugins/extras/editor/carbon-now.lua @@ -0,0 +1,7 @@ +return { + "kristijanhusak/vim-carbon-now-sh", + cmd = { "CarbonNowSh" }, + keys = { + { "cS", ":CarbonNowSh", mode = { "n", "v" }, desc = "Screenshot Code", silent = true }, + }, +} diff --git a/.config/nvim/lua/plugins/extras/editor/rayso.lua b/.config/nvim/lua/plugins/extras/editor/rayso.lua deleted file mode 100644 index 11da81bc..00000000 --- a/.config/nvim/lua/plugins/extras/editor/rayso.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "TobinPalmer/rayso.nvim", - cmd = { "Rayso" }, - keys = { - { "cS", "Rayso", mode = { "n" }, desc = "Screenshot Code" }, - { "cS", "'<,'>Rayso", mode = { "v" }, desc = "Screenshot Selection" }, - }, - opts = { - open_cmd = "librewolf", - }, -}