From 7f8605354e4c691f2d5ef420cc6ed4bfe82f7755 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sun, 22 Aug 2021 11:33:15 +0300 Subject: [PATCH] Add more configuration for indent-blankline --- .../nvim/lua/pluginconf/indent-blankline.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/home/.config/nvim/lua/pluginconf/indent-blankline.lua b/home/.config/nvim/lua/pluginconf/indent-blankline.lua index a46bc83..b103c7a 100644 --- a/home/.config/nvim/lua/pluginconf/indent-blankline.lua +++ b/home/.config/nvim/lua/pluginconf/indent-blankline.lua @@ -1 +1,15 @@ -require('indent_blankline').setup {filetype_exclude = {'help'}} +require('indent_blankline').setup {char = " ", filetype_exclude = {'help', 'terminal'}} + +-- define the highlight groups with only background colors (or leave odd empty to just show the normal background) +vim.cmd [[highlight IndentOdd guifg=NONE guibg=NONE gui=nocombine]] +vim.cmd [[highlight IndentEven guifg=NONE guibg=#354254 gui=nocombine]] +-- and then use the highlight groups +vim.g.indent_blankline_char_highlight_list = {"IndentOdd", "IndentEven"} +vim.g.indent_blankline_space_char_highlight_list = {"IndentOdd", "IndentEven"} + +-- don't show any characters +vim.g.indent_blankline_char = " " +vim.g.indent_blankline_space_char = " " + +-- when using background, the trailing indent is not needed / looks wrong +vim.g.indent_blankline_show_trailing_blankline_indent = false