Skip to content

Commit ef30973

Browse files
chore(build): auto-generate docs
1 parent c9e07ec commit ef30973

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/plugins/treesitter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,12 @@ opts = {
148148
end
149149

150150
-- indents
151-
if vim.tbl_get(opts, "indent", "enable") ~= false then
151+
if vim.tbl_get(opts, "indent", "enable") ~= false and LazyVim.treesitter.have(ev.match, "indents") then
152152
LazyVim.set_default("indentexpr", "v:lua.LazyVim.treesitter.indentexpr()")
153153
end
154154

155155
-- folds
156-
if vim.tbl_get(opts, "folds", "enable") ~= false then
156+
if vim.tbl_get(opts, "folds", "enable") ~= false and LazyVim.treesitter.have(ev.match, "folds") then
157157
if LazyVim.set_default("foldmethod", "expr") then
158158
LazyVim.set_default("foldexpr", "v:lua.LazyVim.treesitter.foldexpr()")
159159
end

0 commit comments

Comments
 (0)