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 " Sessions
set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages
set foldmethod=marker
set nocompatible
" some conditional configs " some conditional configs
if has('mouse') if has('mouse')

7
vimrc
View file

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