diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-06-28 23:13:42 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-06-28 23:13:42 +0300 |
| commit | b24eddefb59c7f1b78cb34fb760dc873bb25277e (patch) | |
| tree | 3403746709839a12fd24bd608ab56d3c29de94bf /.config/nvim/lua | |
| parent | aa00acef1e634863ed7124a8f255a1d8e0f8b795 (diff) | |
Modified nvim config, added comment/uncomment keybinding plugin
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/plugins/comment.lua | 17 |
1 files changed, 17 insertions, 0 deletions
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` + }, + }} + |
