mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(folds): enable folds when treesitter available. Fixes #4563
This commit is contained in:
parent
e46cb62a17
commit
fe7003de50
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ function M.foldexpr()
|
|||
return "0"
|
||||
end
|
||||
|
||||
-- don't use treesitter folds for non-file buffers
|
||||
if vim.bo[buf].buftype ~= "" then
|
||||
-- don't use treesitter folds for terminal
|
||||
if vim.bo[buf].buftype == "terminal" then
|
||||
return "0"
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue