From 6424c213de637c7aba8aac4dcc65ffa4c4d7790e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 31 Aug 2022 11:44:32 -0500 Subject: [PATCH] fix(nvim): properly set folding for treesitter --- dots/.nvim-environments/primary/config/lua/core/options.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dots/.nvim-environments/primary/config/lua/core/options.lua b/dots/.nvim-environments/primary/config/lua/core/options.lua index 46564b90..1981d537 100755 --- a/dots/.nvim-environments/primary/config/lua/core/options.lua +++ b/dots/.nvim-environments/primary/config/lua/core/options.lua @@ -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