Nvim: simplify treesitter folding. Function name is displayed now

This commit is contained in:
Marko Korhonen 2022-05-06 13:32:32 +03:00
parent f6679102d8
commit c76a78459a

View File

@ -12,8 +12,3 @@ require'nvim-treesitter.configs'.setup {
vim.wo.foldmethod = 'expr'
vim.wo.foldexpr = 'nvim_treesitter#foldexpr()'
vim.wo.foldtext =
[[substitute(getline(v:foldstart), '\\t' repeat('\ ',&tabstop),'g').'...'.trim(v:foldend)]]
vim.wo.fillchars = 'fold:\\'
vim.wo.foldnestmax = 3
vim.wo.foldminlines = 1