diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -104,12 +104,14 @@ if exists('g:loaded_lsp') \ }]) end autocmd Filetype ocaml autocmd BufWritePre <buffer> :LspFormat +autocmd Filetype ocaml setlocal tabstop=2 +autocmd Filetype ocaml setlocal shiftwidth=2 " Go if exists('g:loaded_lsp') call LspAddServer([#{ \ name: 'golang', - \ filetype: ['go', 'gomod'], + \ filetype: ['go', 'gomod', 'gowork', 'gohtml'], \ path: '/usr/bin/gopls', \ args: ['serve'], \ syncInit: v:true @@ -118,8 +120,10 @@ end autocmd Filetype go set makeprg=go\ build autocmd Filetype go autocmd BufWritePre <buffer> :LspFormat -au BufRead,BufNewFile *.tmpl set filetype=tmpl -autocmd Filetype tmpl setlocal tabstop=2 + +au BufRead,BufNewFile *.tmpl set filetype=gohtml +autocmd Filetype gohtml setlocal tabstop=2 +autocmd Filetype gohtml setlocal formatprg=djlint\ --profile=golang\ --reformat\ - " Nix if exists('g:loaded_lsp') |