nexxai / boringcomment.nvim

Neovim Extension to easily comment out selected code in visual mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Neovim Extension to easily comment out selected code in visual mode

License:MIT License


Languages

Language:Lua 92.9%Language:Makefile 6.1%Language:Vim Script 1.0%