mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 17:00:05 +08:00
1.7 KiB
1.7 KiB
Indent Blankline
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
Settings
A lot of Yggdroot/indentLine options should work out of the box.
Please see :help indent_blankline.txt
for more details.
Install
Use your favourite plugin manager to install.
Example with Packer
-- init.lua
require("packer").startup(
function()
use "lukas-reineke/indent-blankline.nvim"
end
)
Example with Plug
" init.vim
call plug#begin('~/.vim/plugged')
Plug 'lukas-reineke/indent-blankline.nvim'
call plug#end()
Screenshots
Default settings
![Screenshot](https://i.imgur.com/3gRG5qI.png)
With custom listchars
and g:indent_blankline_space_char
![Screenshot](https://i.imgur.com/VxCThMu.png)
With custom g:indent_blankline_char_highlight_list
![Screenshot](https://i.imgur.com/E3B0PUb.png)
With custom background highlight
![Screenshot](https://i.imgur.com/DukMZGk.png)
With context indent highlighted by treesitter
![Screenshot](https://i.imgur.com/mkyGPZZ.png)
Thanks
Special thanks to Yggdroot/indentLine