From b24eddefb59c7f1b78cb34fb760dc873bb25277e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 28 Jun 2024 23:13:42 +0300 Subject: Modified nvim config, added comment/uncomment keybinding plugin --- .config/nvim/lua/plugins/comment.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/nvim/lua/plugins/comment.lua (limited to '.config/nvim/lua/plugins') diff --git a/.config/nvim/lua/plugins/comment.lua b/.config/nvim/lua/plugins/comment.lua new file mode 100644 index 0000000..124482c --- /dev/null +++ b/.config/nvim/lua/plugins/comment.lua @@ -0,0 +1,17 @@ +return { + 'numToStr/Comment.nvim', + opts = { + padding = true, + sticky = true, -- keep cursor at it's position + ignore = nil, + + toggler = { line = 'gcc', block = 'gbc' }, + opleader = { line = 'gc', block = 'gb' }, + extra = { above = 'gcO', below = 'gco', eol = 'gcA' }, + + mappings = { + basic = true, -- `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}` + extra = false, -- `gco`, `gcO`, `gcA` + }, + }} + -- cgit v1.3.1