nvim/lua/plugins/comments.lua
2023-06-30 17:53:02 -05:00

10 lines
351 B
Lua

vim.g.NERDCreateDefaultMappings = 0
vim.cmd('filetype plugin on')
return {
"preservim/nerdcommenter",
keys = {
{ "<leader>/", ':call nerdcommenter#Comment(0, "toggle")<CR>', desc = "Toggle comments on selection" },
{ "<leader>/", ':call nerdcommenter#Comment(0, "toggle")<CR>', desc = "Toggle comments on selection", mode = "v" },
},
}