Go to file
2022-11-03 13:10:39 +09:00
plugin Add LICENSE 2022-11-03 13:10:39 +09:00
LICENSE Add LICENSE 2022-11-03 13:10:39 +09:00
README.md Add README.md 2022-11-03 11:33:54 +09:00

NVim QuickComment

Usage

Add the following to your init.lua (replace "q" with the key you want to map to):

vim.cmd('nmap q :lua vim.g.quickcomment_togglecommentline()<CR>')
vim.cmd('vmap q :luado vim.g.quickcomment_togglecommentline(linenr)<CR>')

Or in init.vim:

nmap q :lua vim.g.quickcomment_togglecommentline()<CR>
vmap q :luado vim.g.quickcomment_togglecommentline(linenr)<CR>