aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMarvin Borner2020-07-11 13:05:36 +0200
committerMarvin Borner2020-07-11 13:05:36 +0200
commitd8aa33eed495e813fb4d635d585dc56e04f7933a (patch)
treed8261f58a1ad2121a5ee914e8986bd8b41fce583 /.config
parenta796d12c54cfaf0c37246867052a0cde649a80f8 (diff)
Dumb but ok
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/init.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index a1b49a0..428f891 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -320,6 +320,13 @@ if &diff
highlight! link DiffText MatchParen
endif
+" Custom indenting
+autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
+autocmd FileType javascript set tabstop=4|set shiftwidth=4|set expandtab
+autocmd FileType css set tabstop=4|set shiftwidth=4|set expandtab
+autocmd FileType json set tabstop=4|set shiftwidth=4|set expandtab
+autocmd FileType html set tabstop=4|set shiftwidth=4|set expandtab
+
" File extension actions
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
autocmd BufRead,BufNewFile *.asm set filetype=nasm