diff options
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/c.vim | 3 | ||||
| -rw-r--r-- | nvim/ftplugin/html.vim | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nvim/ftplugin/c.vim b/nvim/ftplugin/c.vim index e0c347d..fd45dbd 100644 --- a/nvim/ftplugin/c.vim +++ b/nvim/ftplugin/c.vim | |||
| @@ -4,4 +4,5 @@ setlocal formatoptions=tcqr | |||
| 4 | setlocal cindent | 4 | setlocal cindent |
| 5 | 5 | ||
| 6 | setlocal foldenable | 6 | setlocal foldenable |
| 7 | setlocal foldmethod=syntax | 7 | setlocal foldmethod=expr |
| 8 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
diff --git a/nvim/ftplugin/html.vim b/nvim/ftplugin/html.vim index fced505..fe513b6 100644 --- a/nvim/ftplugin/html.vim +++ b/nvim/ftplugin/html.vim | |||
| @@ -6,7 +6,8 @@ setlocal expandtab | |||
| 6 | setlocal autoindent | 6 | setlocal autoindent |
| 7 | 7 | ||
| 8 | setlocal foldenable | 8 | setlocal foldenable |
| 9 | setlocal foldmethod=indent | 9 | setlocal foldmethod=expr |
| 10 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
| 10 | 11 | ||
| 11 | let g:html_indent_script1='inc' | 12 | let g:html_indent_script1='inc' |
| 12 | let g:html_indent_style1='inc' | 13 | let g:html_indent_style1='inc' |
