feat(TS): use treesitter as foldexpr

This commit is contained in:
Michel 2023-10-03 15:31:32 +02:00
parent a7cbaa33d8
commit ec08eb8f29
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,9 @@ local opt = vim.opt
opt.autowrite = false
opt.clipboard = ""
opt.foldlevelstart = 3
opt.foldexpr = "nvim_treesitter#foldexpr()"
opt.foldmethod = "expr"
opt.tabstop = 8
opt.whichwrap = "b,s,<,>,[,]"

View File

@ -97,5 +97,3 @@ return {
end,
},
}
-- vim: fdm=indent fdl=2