From df6e00d2c4096b0de282bd1b2e0f93f1b69ebfe6 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Mon, 1 Jul 2024 13:15:56 +0200 Subject: Add Caddyfile config to nvim --- nvim/init.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'nvim') diff --git a/nvim/init.vim b/nvim/init.vim index 0409b0f..f1f1d1e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -43,6 +43,10 @@ let g:go_fmt_command="goimports" let g:rustfmt_autosave = 1 +" Caddyfile #################################################################### +" +au BufNewFile,BufRead Caddyfile,*.Caddyfile,Caddyfile.* set ft=caddyfile + " neomake ################################################################## autocmd! BufWritePost * Neomake @@ -103,8 +107,9 @@ au FileType javascript setlocal tabstop=2 shiftwidth=2 au FileType typescript setlocal tabstop=2 shiftwidth=2 "We want certain types to use tabs instead of spaces -au FileType go setlocal nolist noexpandtab -au FileType make setlocal nolist noexpandtab +au FileType go setlocal nolist noexpandtab +au FileType make setlocal nolist noexpandtab +au FileType caddyfile setlocal nolist noexpandtab "terminal shortcuts tnoremap \ -- cgit v1.2.3