From 4d679834ff6d89b0aa4c7560b856d81e3477f00b Mon Sep 17 00:00:00 2001 From: Andy Teijelo Date: Mon, 6 May 2024 11:02:03 -0400 Subject: [PATCH] add treesitter foldexpr --- lazyvim.json | 4 ++-- lua/config/options.lua | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lazyvim.json b/lazyvim.json index 4ce5a7d..806a5db 100644 --- a/lazyvim.json +++ b/lazyvim.json @@ -9,7 +9,7 @@ "lazyvim.plugins.extras.lang.typescript" ], "news": { - "NEWS.md": "2123" + "NEWS.md": "3314" }, - "version": 2 + "version": 3 } \ No newline at end of file diff --git a/lua/config/options.lua b/lua/config/options.lua index 81ebe76..435a3dd 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -11,3 +11,6 @@ vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.g.autoformat = false vim.opt.completeopt = "menuone,noselect,preview" +vim.opt.foldmethod = "expr" +vim.opt.foldexpr = "nvim_treesitter#foldexpr()" +vim.opt.foldenable = false