feat(neovim): use treesitter for folding

This commit is contained in:
mandlm 2022-08-22 07:56:56 +02:00
parent 9e422fd019
commit d873f5ffb1
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7

View File

@ -34,6 +34,10 @@ vim.opt.inccommand = "split"
-- completion
vim.opt.completeopt = "menu,menuone,noselect"
-- folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-- set cursorline in active window
vim.cmd([[
augroup CursorLine
@ -51,4 +55,3 @@ vim.cmd([[
autocmd TermOpen * setlocal nonumber norelativenumber
augroup END
]])