diff options
| author | Robert Günzler <r@gnzler.io> | 2023-01-25 11:06:25 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2023-03-21 12:35:43 +0100 |
| commit | e215c3434dd39b5293b22940d44d5d7f9625b3f2 (patch) | |
| tree | 13f9c1a67f3dbbcf691b9f419c153a2183b3c195 | |
| parent | 2fa8017df618d43a24994ab55eab140d3889bc57 (diff) | |
vim: make guess-indent work under lazy
Signed-off-by: Robert Günzler <r@gnzler.io>
| -rw-r--r-- | .vim/lua/plugins.lua | 24 |
1 files changed, 13 insertions, 11 deletions
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 = { + { + '<leader>ti', + [[:IndentBlanklineToggle!<cr>]], + 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' }, |