From ec08eb8f29b8f89998217475c5b364d25ab46379 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 3 Oct 2023 15:31:32 +0200 Subject: [PATCH] feat(TS): use treesitter as foldexpr --- lua/config/options.lua | 3 +++ lua/plugins/UI.lua | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/config/options.lua b/lua/config/options.lua index 8112e84..e14bdc7 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -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,<,>,[,]" diff --git a/lua/plugins/UI.lua b/lua/plugins/UI.lua index 094220d..df21cab 100644 --- a/lua/plugins/UI.lua +++ b/lua/plugins/UI.lua @@ -97,5 +97,3 @@ return { end, }, } - --- vim: fdm=indent fdl=2