fix(folds): enable folds when treesitter available. Fixes #4563

This commit is contained in:
Folke Lemaitre
2024-10-23 11:32:18 +02:00
parent e46cb62a17
commit fe7003de50

View File

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