nvim/lua/plugins/comments.lua
RingOfStorms (Joshua Bell) 0a17321086 format all files
2023-11-03 00:57:32 -05:00

17 lines
438 B
Lua

vim.g.NERDCreateDefaultMappings = 0
vim.g.NERDDefaultAlign = "both"
vim.g.NERDSpaceDelims = 1
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",
},
},
}