fix(nvim): properly set folding for treesitter

This commit is contained in:
Price Hiller 2022-08-31 11:44:32 -05:00
parent 6b3a011b78
commit 6424c213de

View File

@ -65,6 +65,8 @@ M.setup = function()
opt.foldmethod = "expr"
opt.fillchars = { fold = " " }
opt.foldlevel = 20
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
vim.wo.foldmethod = "expr"
-- Concealment for nicer rendering
opt.conceallevel = 2