From e9fc34edfcfa83f6394047bce1317e41892ca394 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 2 Aug 2023 15:31:11 +0200 Subject: [PATCH] feat: moved from nerdcommenter to comment.nvim --- home/neovim/lua/plugins/comment.lua | 22 ++++++++++++++++++++++ home/neovim/lua/plugins/nerdcommenter.lua | 6 ------ 2 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 home/neovim/lua/plugins/comment.lua delete mode 100644 home/neovim/lua/plugins/nerdcommenter.lua diff --git a/home/neovim/lua/plugins/comment.lua b/home/neovim/lua/plugins/comment.lua new file mode 100644 index 0000000..80aa12d --- /dev/null +++ b/home/neovim/lua/plugins/comment.lua @@ -0,0 +1,22 @@ +return { + "numToStr/Comment.nvim", + config = { + toggler = { + line = 'c', + block = 'b' + }, + opleader = { + line = 'c', + block = 'b', + }, + extra = { + above = 'cO', + below = 'co', + eol = 'cA', + }, + mappings = { + basic = true, + extra = false, + }, + }, +} diff --git a/home/neovim/lua/plugins/nerdcommenter.lua b/home/neovim/lua/plugins/nerdcommenter.lua deleted file mode 100644 index 8490ce6..0000000 --- a/home/neovim/lua/plugins/nerdcommenter.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "preservim/nerdcommenter", - config = function () - vim.g["NERDDefaultAlign"] = "left" - end -}