Implemented folding and some improvements. Moved functions to the utils module

This commit is contained in:
2025-08-29 17:38:23 +02:00
parent d29b2e1012
commit ec9b84ac35
10 changed files with 70 additions and 36 deletions

View File

@@ -16,3 +16,13 @@ vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.opt.signcolumn = "yes"
-- Enable Treesitter-based folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevelstart = 99 -- open all folds by default
vim.opt.fillchars = "fold:╌"
-- 3. Persist folds using mkview/loadview