From 924139448f7f85f1e354f290ee7f7731cc83bb04 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 9 Nov 2023 13:16:59 +1100 Subject: [PATCH] should not overrite vim.opts.fillchar setup --- lua/navigator/foldts.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/navigator/foldts.lua b/lua/navigator/foldts.lua index 99469d9..db6a5a7 100644 --- a/lua/navigator/foldts.lua +++ b/lua/navigator/foldts.lua @@ -63,7 +63,6 @@ function NG_custom_fold_text() end vim.opt.foldtext = NG_custom_fold_text() -vim.opt.fillchars = { eob = '-', fold = ' ' } vim.opt.viewoptions:remove('options') @@ -72,8 +71,8 @@ function M.setup_fold() api.nvim_command('autocmd! * ') api.nvim_command('augroup end') vim.opt.foldtext = 'v:lua.NG_custom_fold_text()' - vim.opt.fillchars = { eob = '-', fold = ' ' } vim.opt.viewoptions:remove('options') + vim.opt.fillchars = { foldclose = "", foldopen = "", vert = "│", fold = " ", diff = "░", msgsep = "‾", foldsep = "│" } local current_window = api.nvim_get_current_win() if not parsers.has_parser() then