rhcher / indentmini.nvim

A minimal and blazing fast indentline plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indentmini.nvim

A minimal and blazing fast indentline plugin by using nvim_set_decoration_provide api

Install

  • Lazy.nvim
require('lazy').setup({
    'nvimdev/indentmini.nvim',
    event = 'BufEnter',
    config = function()
        require('indentmini').setup()
    end,
    -- this is no required but if you want indent blanklink line this is needed
    dependencies = { 'nvim-treesitter/nvim-treesitter'}
})

Config

  • char -- string type default is ,
  • exclude -- table type add exclude filetype in this table

highlight group is IndentLine. you can use this to link it to Comment

config = function()
    require("indentmini").setup({
        char = "|",
        exclude = {
            "erlang",
            "markdown",
        }
    })
    -- use comment color
    vim.cmd.highlight("default link IndentLine Comment")
end,

License MIT

About

A minimal and blazing fast indentline plugin

License:MIT License


Languages

Language:Lua 100.0%