Modified nvim config, added comment/uncomment keybinding plugin
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||
"LuaSnip": { "branch": "master", "commit": "50fcf17db7c75af80e6b6109acfbfb4504768780" },
|
||||
"alpha-nvim": { "branch": "main", "commit": "41283fb402713fc8b327e60907f74e46166f4cfd" },
|
||||
"catppuccin": { "branch": "main", "commit": "c0bea773a09e49e123136b099bce9ddc1bf395d2" },
|
||||
|
||||
17
.config/nvim/lua/plugins/comment.lua
Normal file
17
.config/nvim/lua/plugins/comment.lua
Normal 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`
|
||||
},
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user