change nvim fold method

This commit is contained in:
Nachuan Tang
2022-11-18 21:59:33 -05:00
parent 2ff2499520
commit a1ea629d3c
+7 -2
View File
@@ -168,8 +168,13 @@
" Yank from the cursor to the end of the line, to be consistent with C and D.
nnoremap Y y$
set foldmethod=syntax
autocmd FileType python set foldmethod=indent
if has('nvim')
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
else
set foldmethod=syntax
autocmd FileType python set foldmethod=indent
endif
"set nofoldenable
" Find merge conflict markers