Modified nvim config, added comment/uncomment keybinding plugin

This commit is contained in:
Kyren223
2024-06-28 23:13:42 +03:00
parent aa00acef1e
commit b24eddefb5
2 changed files with 18 additions and 0 deletions

View File

@@ -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`
},
}}