change nvim fold method
This commit is contained in:
@@ -168,8 +168,13 @@
|
|||||||
" Yank from the cursor to the end of the line, to be consistent with C and D.
|
" Yank from the cursor to the end of the line, to be consistent with C and D.
|
||||||
nnoremap Y y$
|
nnoremap Y y$
|
||||||
|
|
||||||
set foldmethod=syntax
|
if has('nvim')
|
||||||
autocmd FileType python set foldmethod=indent
|
set foldmethod=expr
|
||||||
|
set foldexpr=nvim_treesitter#foldexpr()
|
||||||
|
else
|
||||||
|
set foldmethod=syntax
|
||||||
|
autocmd FileType python set foldmethod=indent
|
||||||
|
endif
|
||||||
"set nofoldenable
|
"set nofoldenable
|
||||||
|
|
||||||
" Find merge conflict markers
|
" Find merge conflict markers
|
||||||
|
|||||||
Reference in New Issue
Block a user