From 62411eb1cc70d29acbd6de7899d27a0ea4ade269 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 25 Jul 2023 10:51:45 +0200 Subject: [PATCH] fixed indent blankline --- lua/plugins/indent_blankline.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lua/plugins/indent_blankline.lua b/lua/plugins/indent_blankline.lua index 8945707..445cc34 100644 --- a/lua/plugins/indent_blankline.lua +++ b/lua/plugins/indent_blankline.lua @@ -3,18 +3,20 @@ return { dependencies = { 'nvim-treesitter/nvim-treesitter', }, - opts = { - show_end_of_line = true, - use_treesitter = true, - show_current_context = true, - context_patterns = { 'class', 'function', 'method', 'block', '^if', '^for', '^while' }, - - }, config = function() local opt = vim.opt -- to set options opt.listchars:append('eol:↴') -- opt.listchars:append("space: ") + -- opt.listchars:append 'space:⋅' opt.listchars:append('trail: ') opt.listchars:append('tab:→ ') + require('indent_blankline').setup { + show_end_of_line = true, + use_treesitter = true, + show_current_context = true, + show_current_context_start = false, + space_char_blankline = ' ', + -- context_patterns = { 'class', 'function', 'method', 'block', '^if', '^for', '^while' }, + } end, }