diff options
author | Brian Picciano <me@mediocregopher.com> | 2024-07-01 13:15:56 +0200 |
---|---|---|
committer | Brian Picciano <me@mediocregopher.com> | 2024-07-01 13:15:56 +0200 |
commit | df6e00d2c4096b0de282bd1b2e0f93f1b69ebfe6 (patch) | |
tree | a9701ffc4912a19f4b2fd0b2579a618939b59fa5 | |
parent | 21cba274fb0b6bb4419859b49ad5c7493b6feae9 (diff) |
Add Caddyfile config to nvim
-rw-r--r-- | nvim/init.vim | 9 |
1 files changed, 7 insertions, 2 deletions
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 <leader><leader> \ |