From e215c3434dd39b5293b22940d44d5d7f9625b3f2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 25 Jan 2023 11:06:25 +0100 Subject: vim: make guess-indent work under lazy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .vim/lua/plugins.lua | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to '.vim/lua/plugins.lua') diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index cc81aed..dc1c60b 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -95,22 +95,23 @@ local pluginspec = { opts = { char = '▏', char_highlight_list = { 'Whitespace' }, - -- space_char = ' ', - -- space_char_highlight_list = {}, - show_first_indent_level = true, - show_trailing_blankline_indent = false, - show_end_of_line = true, + -- show_trailing_blankline_indent = false, + -- show_end_of_line = true, use_treesitter = true, - disable_with_nolist = true, - buftype_exclude = { 'terminal' }, - bufname_exclude = { 'README.md' }, filetype_exclude = { 'alpha' }, - strict_tabs = true, - show_current_context = true, - context_patterns = { 'class', 'function', 'method', 'block' }, + -- strict_tabs = true, + show_current_context = false, + -- context_patterns = { 'class', 'function', 'method', 'block' }, -- context_highlight_list = {'Folded'}, context_highlight_list = { 'deEmph' }, }, + keys = { + { + 'ti', + [[:IndentBlanklineToggle!]], + desc = 'toggle indent-blankline', + }, + }, }, { @@ -713,6 +714,7 @@ local pluginspec = { { 'NMAC427/guess-indent.nvim', + lazy = false, opts = { auto_cmd = true, filetype_exclude = { 'netrw', 'tutor', 'dirbuf' }, -- cgit 1.4.1