Try folds and some other changes

This commit is contained in:
2024-10-16 15:56:59 +02:00
parent 50b8c88e92
commit a56b8f7029
5 changed files with 49 additions and 36 deletions

View File

@@ -42,5 +42,10 @@ vim.opt.expandtab = false
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.completeopt = { "menu", "menuone", "noselect" }
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldtext = ""
vim.opt.foldlevelstart = 1
vim.opt.foldnestmax = 2
-- TODO replace config with opts in every plugin