Skip to content

Commit

Permalink
should not overrite vim.opts.fillchar setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Nov 9, 2023
1 parent 231968a commit 9241394
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/navigator/foldts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -72,8 +71,8 @@ function M.setup_fold()
api.nvim_command('autocmd! * <buffer>')
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
Expand Down

0 comments on commit 9241394

Please sign in to comment.