This plugin adds indentation guides to all lines (including empty lines).
It uses Neovims virtual text feature and no conceal
This plugin requires Neovim 0.5 or higher. It makes use of Neovim only
features so it will not work in Vim.
There is a legacy version of the plugin that supports Neovim 0.4 under the
branch version-1
Use your favourite plugin manager to install.
-- init.lua
require("packer").startup(
function()
use "lukas-reineke/indent-blankline.nvim"
end
)
" init.vim
call plug#begin('~/.vim/plugged')
Plug 'lukas-reineke/indent-blankline.nvim'
call plug#end()
To configure indent-blankline, either run the setup function, or set variables manually.
The setup function has a single table as argument, keys of the table match the :help indent-blankline-variables
without the indent_blankline_
part.
require("indent_blankline").setup {
char = "|",
buftype_exclude = {"terminal"}
}
Please see :help indent_blankline.txt
for more details and all possible values.
A lot of Yggdroot/indentLine options should work out of the box.
Special thanks to Yggdroot/indentLine