diff --git a/home-manager/neovim/options.lua b/home-manager/neovim/options.lua index 67d59c2..26502f6 100644 --- a/home-manager/neovim/options.lua +++ b/home-manager/neovim/options.lua @@ -34,6 +34,11 @@ vim.opt.inccommand = "split" -- completion vim.opt.completeopt = "menu,menuone,noselect" +-- folding +vim.opt.foldmethod = "expr" +vim.opt.foldexpr = 'nvim_treesitter#foldexpr()' +vim.opt.foldlevelstart = 99 + -- set cursorline in active window vim.cmd([[ augroup CursorLine @@ -51,4 +56,3 @@ vim.cmd([[ autocmd TermOpen * setlocal nonumber norelativenumber augroup END ]]) -