blankline layer#
The blankline layer adds indentation vertical guides using
indent-blankline.nvim.
Configuration#
indent_blankline(table): a valid configuration for theindent-blankline.nvimplugin, as described in the relevant docs’configtype;rainbow_integration(table): if set to a false-ish value, it disables integration with therainbowlayer even when the latter is enabled. Otherwise, it must be a list of tables describing highlight groups to be shared by theblanklineandrainbowlayers. Said tables are ordered by the outmost to the innermost highlight group to be used for indentation vertical guides and parentheses. Each table has the following field:name(string): the name of the highlight group;fg(string): a hex code in the form#RRGGBBto be used as foreground color for the highlighting. No background color will be set for the highlighting of indentation vertical guides and rainbow parentheses.
Examples#
-- path/of/your/vim/config/init.lua
require("visimp")({
blankline = {
indent_blankline = {
debounce = 100, -- refresh is debounced by 100 ms
indent = { char = "|" }, -- used to draw lines
whitespace = { highlight = { "Whitespace", "NonText" } }, -- whitespace look
scope = { exclude = { language = { "lua" } } }, -- hides scope in Lua
},
rainbow_integration = {
{
name = 'RainbowWhite',
fg = '#FFFFFF',
},
},
},
})Documentation#
Readme and docs for the original plugin are available at its repository.