Set vim foldmethod to TreeSitter
This commit is contained in:
parent
db062670a4
commit
e81f56d95f
2 changed files with 7 additions and 3 deletions
|
@ -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
7
vimrc
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue