nvim/lua/plugins/comments.lua
RingOfStorms (Joshua Bell) 452abf2029 formatting
2023-07-05 10:06:18 -05:00

15 lines
359 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",
},
},
}