boringcomment.nvim
is simply a way to comment & uncomment multiple lines of code in visual mode at once, and single lines in normal mode. Yep thats kinda it
Using packer.nvim
use 'alexshelto/boringcomment.nvim'
Using Lua:
local boringcomment = require("boringcomment.commenter")
vim.keymap.set('x', "<leader>/", function()
boringcomment.comment_visual_selection()
end)
vim.keymap.set('n', "<leader>/", function ()
boringcomment.comment_current_line()
end)