add treesitter foldexpr

This commit is contained in:
Andy Teijelo 2024-05-06 11:02:03 -04:00
parent 7b31e0ad53
commit 4d679834ff
2 changed files with 5 additions and 2 deletions

View file

@ -9,7 +9,7 @@
"lazyvim.plugins.extras.lang.typescript" "lazyvim.plugins.extras.lang.typescript"
], ],
"news": { "news": {
"NEWS.md": "2123" "NEWS.md": "3314"
}, },
"version": 2 "version": 3
} }

View file

@ -11,3 +11,6 @@ vim.opt.tabstop = 4
vim.opt.shiftwidth = 4 vim.opt.shiftwidth = 4
vim.g.autoformat = false vim.g.autoformat = false
vim.opt.completeopt = "menuone,noselect,preview" vim.opt.completeopt = "menuone,noselect,preview"
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldenable = false