Skip to content

A Neovim plugin that allows you to change the color and text decoration of a line number when the mode changes

License

Notifications You must be signed in to change notification settings

sethen/line-number-change-mode.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

line-number-change-mode.nvim

A Neovim plugin that allows you to change the color and text decoration of a line number when the mode changes. Accepts anything that vim.api.nvim_set_hl() accepts!

line-number-change-mode.webm

Example using lazy:

return {
    'sethen/line-number-change-mode.nvim',
    config = function()
        require('catppuccin').setup({
            flavour = 'mocha',
        });
        local palette = require('catppuccin.palettes').get_palette('mocha')

        if (palette == nil) then
            return nil
        end

        require("line-number-change-mode").setup({
            mode = {
                i = {
                    bg = palette.green,
                    fg = palette.mantle,
                    bold = true,
                },
                n = {
                    bg = palette.blue,
                    fg = palette.mantle,
                    bold = true,
                },
                R = {
                    bg = palette.maroon,
                    fg = palette.mantle,
                    bold = true,
                },
                v = {
                    bg = palette.mauve,
                    fg = palette.mantle,
                    bold = true,
                },
                V = {
                    bg = palette.mauve,
                    fg = palette.mantle,
                    bold = true,
                },
            }
        })
    end
}

Similar Plugins ❤️

About

A Neovim plugin that allows you to change the color and text decoration of a line number when the mode changes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages