Skip to content

Neovim Extension to easily comment out selected code in visual mode

License

Notifications You must be signed in to change notification settings

alexshelto/boringcomment.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

Using LazyVim

return {
  {
    "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

Resources

License

Stars

Watchers

Forks

Packages

No packages published