diff options
Diffstat (limited to 'nvim_alt/ftplugin')
| -rw-r--r-- | nvim_alt/ftplugin/c.vim | 9 | ||||
| -rw-r--r-- | nvim_alt/ftplugin/html.vim | 15 | ||||
| -rw-r--r-- | nvim_alt/ftplugin/markdown.vim | 3 | ||||
| -rw-r--r-- | nvim_alt/ftplugin/typescript.vim | 11 | ||||
| -rw-r--r-- | nvim_alt/ftplugin/vim.vim | 6 |
5 files changed, 44 insertions, 0 deletions
diff --git a/nvim_alt/ftplugin/c.vim b/nvim_alt/ftplugin/c.vim new file mode 100644 index 0000000..3fc55eb --- /dev/null +++ b/nvim_alt/ftplugin/c.vim | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | setlocal cinoptions=:0,p0,t0 | ||
| 2 | setlocal cinwords=if,else,while,do,for,switch,case | ||
| 3 | setlocal formatoptions=tcqr | ||
| 4 | setlocal cindent | ||
| 5 | setlocal indentexpr=nvim_treesitter#indent() | ||
| 6 | |||
| 7 | setlocal foldenable | ||
| 8 | setlocal foldmethod=expr | ||
| 9 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
diff --git a/nvim_alt/ftplugin/html.vim b/nvim_alt/ftplugin/html.vim new file mode 100644 index 0000000..fe513b6 --- /dev/null +++ b/nvim_alt/ftplugin/html.vim | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
| 7 | |||
| 8 | setlocal foldenable | ||
| 9 | setlocal foldmethod=expr | ||
| 10 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
| 11 | |||
| 12 | let g:html_indent_script1='inc' | ||
| 13 | let g:html_indent_style1='inc' | ||
| 14 | let g:html_indent_autotags='html' | ||
| 15 | let g:html_indent_inctags='head,body' | ||
diff --git a/nvim_alt/ftplugin/markdown.vim b/nvim_alt/ftplugin/markdown.vim new file mode 100644 index 0000000..e5f14dc --- /dev/null +++ b/nvim_alt/ftplugin/markdown.vim | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | setlocal wrap | ||
| 2 | setlocal linebreak | ||
| 3 | setlocal spell | ||
diff --git a/nvim_alt/ftplugin/typescript.vim b/nvim_alt/ftplugin/typescript.vim new file mode 100644 index 0000000..5f56854 --- /dev/null +++ b/nvim_alt/ftplugin/typescript.vim | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
| 7 | |||
| 8 | setlocal foldenable | ||
| 9 | setlocal foldmethod=expr | ||
| 10 | setlocal foldexpr=nvim_treesitter#foldexpr() | ||
| 11 | |||
diff --git a/nvim_alt/ftplugin/vim.vim b/nvim_alt/ftplugin/vim.vim new file mode 100644 index 0000000..1054984 --- /dev/null +++ b/nvim_alt/ftplugin/vim.vim | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
