/boringcomment.nvim

Neovim Extension to easily comment out selected code in visual mode

Primary LanguageLuaMIT LicenseMIT

boringcomment.nvim

output

What Is boringcomment?

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

Instalation

Using packer.nvim

use 'alexshelto/boringcomment.nvim'

Usage

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)