add treesitter folding
This commit is contained in:
parent
8071c23c8a
commit
fe9bfddfe9
|
@ -38,3 +38,7 @@ vim.opt.cursorline = true
|
||||||
|
|
||||||
-- Minimal number of screen lines to keep above and below the cursor.
|
-- Minimal number of screen lines to keep above and below the cursor.
|
||||||
vim.opt.scrolloff = 10
|
vim.opt.scrolloff = 10
|
||||||
|
|
||||||
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||||
|
vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"
|
||||||
|
|
Loading…
Reference in New Issue