Nvim: simplify treesitter folding. Function name is displayed now

main
Marko Korhonen 2 years ago
parent f6679102d8
commit c76a78459a

@ -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

Loading…
Cancel
Save