From df3b9f5b0b43877ab1c31261545c74503cc932e7 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sat, 28 Dec 2019 11:29:08 +0530 Subject: [PATCH] nvim: init.vim: Cleanup indentation defaults autocmd group Signed-off-by: Sanchayan Maity --- nvim/init.vim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index af7247d..e70f0e4 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -471,14 +471,14 @@ augroup indentation_defaults au BufRead,BufNewFile Makefile* set noexpandtab au BufNewFile,BufRead *.vim setlocal noet ts=4 sw=4 sts=4 au BufNewFile,BufRead *.txt setlocal noet ts=4 sw=4 - autocmd BufNewFile,BufRead *.lua setlocal noet ts=4 sw=4 sts=4 - autocmd BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab - autocmd FileType fstab,systemd set noexpandtab - autocmd FileType gitconfig,sh,toml set noexpandtab - autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2 - autocmd BufRead,BufNewFile */gstreamer-*/*.[ch] set et sw=2 - autocmd BufRead,BufNewFile */pulseaudio/*.[ch] set et sw=4 tw=128 - autocmd BufRead,BufNewFile *.purs set et sw=2 sts=2 si + au BufNewFile,BufRead *.lua setlocal noet ts=4 sw=4 sts=4 + au BufNewFile,BufRead *.py setlocal tabstop=4 softtabstop=4 shiftwidth=4 textwidth=80 smarttab expandtab + au BufRead,BufNewFile */gst-*/*.[ch] set et sw=2 + au BufRead,BufNewFile */gstreamer-*/*.[ch] set et sw=2 + au BufRead,BufNewFile */pulseaudio/*.[ch] set et sw=4 tw=128 + au BufRead,BufNewFile *.purs set et sw=2 sts=2 si + au FileType fstab,systemd set noexpandtab + au FileType gitconfig,sh,toml set noexpandtab augroup END augroup spell_check