mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-18 21:27:42 +00:00
Nvim: simplify treesitter folding. Function name is displayed now
This commit is contained in:
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…
Reference in New Issue
Block a user