Skip to content

clarkwang/nvim-comment-toggler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

How it works

See the demo video.

Install/setup

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 })

Manual

require'comment-toggler'.setup{
    default_key = '#',
    filetypes = {
        c = {
            marker = '//',
        },
        lua = {},
        python = {},
        sh = {},
        tmux = {},
        vim = { key = '"' }
        yaml = {},
    },
}

About

Very simple comment toggler

Resources

Stars

Watchers

Forks

Languages