aboutsummaryrefslogtreecommitdiff
path: root/nvim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/ftplugin')
-rw-r--r--nvim/ftplugin/c.vim7
-rw-r--r--nvim/ftplugin/html.vim14
2 files changed, 21 insertions, 0 deletions
diff --git a/nvim/ftplugin/c.vim b/nvim/ftplugin/c.vim
new file mode 100644
index 0000000..e0c347d
--- /dev/null
+++ b/nvim/ftplugin/c.vim
@@ -0,0 +1,7 @@
1setlocal cinoptions=:0,p0,t0
2setlocal cinwords=if,else,while,do,for,switch,case
3setlocal formatoptions=tcqr
4setlocal cindent
5
6setlocal foldenable
7setlocal foldmethod=syntax
diff --git a/nvim/ftplugin/html.vim b/nvim/ftplugin/html.vim
new file mode 100644
index 0000000..fced505
--- /dev/null
+++ b/nvim/ftplugin/html.vim
@@ -0,0 +1,14 @@
1setlocal tabstop=2
2setlocal softtabstop=2
3setlocal shiftwidth=2
4setlocal smarttab
5setlocal expandtab
6setlocal autoindent
7
8setlocal foldenable
9setlocal foldmethod=indent
10
11let g:html_indent_script1='inc'
12let g:html_indent_style1='inc'
13let g:html_indent_autotags='html'
14let g:html_indent_inctags='head,body'