See the demo video.
Example with packer.nvim
use { 'clarkwang/nvim-comment-toggler',
config = function()
require'comment-toggler'.setup{
default_key = '#',
filetypes = {
c = {
marker = '//',
},
lua = {},
python = {},
sh = {},
tmux = {},
yaml = {},
},
}
end,
}
Example with lazy.nvim
plugins = {
...
{ 'clarkwang/nvim-comment-toggler',
opts = {
default_key = '#',
filetypes = {
c = {
marker = '//',
},
lua = {},
python = {},
sh = {},
tmux = {},
yaml = {},
},
},
}
...
}
require'lazy'.setup(plugins, { lazy.nvim opts here })
require'comment-toggler'.setup{
default_key = '#',
filetypes = {
c = {
marker = '//',
},
lua = {},
python = {},
sh = {},
tmux = {},
vim = { key = '"' }
yaml = {},
},
}