diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-04-02 21:02:01 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-04-02 21:02:01 +0200 |
| commit | 2d3d838cd3147ec3412e5b01051b5d5cf891ed88 (patch) | |
| tree | ddb5d5c43f7e9fb37822f11f23244c1371eb20e6 /nvim/ftplugin | |
| parent | b7b34ea4744205815abba828ec6ec1a82cefdcf1 (diff) | |
| download | dotfiles-2d3d838cd3147ec3412e5b01051b5d5cf891ed88.tar.gz dotfiles-2d3d838cd3147ec3412e5b01051b5d5cf891ed88.tar.bz2 dotfiles-2d3d838cd3147ec3412e5b01051b5d5cf891ed88.zip | |
Konfiguration für Treesitter
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' |
