summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-30 16:54:53 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-10-30 16:54:53 +0100
commitf2f39394d0dff236753fd6d33dd44cd16ef1151f (patch)
tree425ef8b111d6e7792ddf252b3679aaed16a902ff
parent0c0907ce732064d5a904f9586c0809e3874d2a08 (diff)
downloaddotfiles-f2f39394d0dff236753fd6d33dd44cd16ef1151f.tar.gz
dotfiles-f2f39394d0dff236753fd6d33dd44cd16ef1151f.tar.xz
dotfiles-f2f39394d0dff236753fd6d33dd44cd16ef1151f.zip
nvim: Add sls file type and cleanup others
-rw-r--r--nvim/.config/nvim/init.vim11
1 files changed, 6 insertions, 5 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
index 5cdda8f..32843d0 100644
--- a/nvim/.config/nvim/init.vim
+++ b/nvim/.config/nvim/init.vim
@@ -743,11 +743,12 @@ augroup cryptomilk
augroup END
augroup filetypedetect
- au! BufRead,BufNewFile CMake* setfiletype cmake
- au! BufRead,BufNewFile *.cmake setfiletype cmake
- au! BufRead,BufNewFile *.dox setfiletype c.doxygen
- au! BufRead,BufNewFile wscript* setfiletype python
- au! BufRead,BufNewFile /tmp/vc.* setfiletype changes
+ au! BufRead,BufNewFile CMake* setlocal ft=cmake ts=4 sw=4 noet
+ au! BufRead,BufNewFile *.cmake setlocal ft=cmake ts=4 sw=4 noet
+ au! BufRead,BufNewFile *.sls setlocal ft=yaml ts=2 sw=2 noet
+ au! BufRead,BufNewFile *.dox setlocal ft=c.doxygen
+ au! BufRead,BufNewFile wscript* setlocal ft=python ts=4 sw=4 noet
+ au! BufRead,BufNewFile /tmp/vc.* setlocal ft=changes
augroup END
function! SetPluginOptionsNow()