Set vim foldmethod to TreeSitter

This commit is contained in:
Talia 2023-06-22 14:16:28 +02:00
parent db062670a4
commit e81f56d95f
Signed by: darkwiiplayer
GPG Key ID: 7808674088232B3E
2 changed files with 7 additions and 3 deletions

View File

@ -6,9 +6,6 @@
" Sessions
set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages
set foldmethod=marker
set nocompatible
" some conditional configs
if has('mouse')

7
vimrc
View File

@ -9,6 +9,13 @@ if has("nvim")
lua pcall(require, "plugins")
end
set nocompatible
au VimEnter * TSEnable highlight
au VimEnter * TSEnable incremental_selection
au VimEnter * TSEnable indent
set foldlevel=99
set foldlevelstart=99
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()