mirror of
https://github.com/itme-brain/nvim.git
synced 2026-05-08 07:00:13 -04:00
fix(treesitter): avoid auto-closing folds
This commit is contained in:
parent
798a266ed7
commit
f11e6a02db
2 changed files with 28 additions and 2 deletions
|
|
@ -72,8 +72,6 @@ return {
|
|||
},
|
||||
callback = function(event)
|
||||
if pcall(vim.treesitter.start, event.buf) then
|
||||
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||
vim.wo.foldmethod = "expr"
|
||||
vim.bo[event.buf].indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
|
||||
end
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue