fix(folds): enable folds when treesitter available. Fixes #4563
This commit is contained in:
1 file changed
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user