vimrc(go),systemd: update path for gopls.service

This commit is contained in:
surtur 2022-10-30 03:23:24 +01:00
parent 11c0821a5d
commit 9233819b6b
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 6 additions and 3 deletions

@ -3,7 +3,7 @@ Description = Go language server.
[Service]
ExecStartPre=bash -c "rm -v -f /tmp/.gopls-daemon.sock || true"
ExecStart=%h/utils/go/bin/gopls -listen="unix;/tmp/.gopls-daemon.sock"
ExecStart=%h/go/bin/gopls -listen="unix;/tmp/.gopls-daemon.sock"
ExecStopPost=bash -c "rm -v -f /tmp/.gopls-daemon.sock || true"
; -remote.listen.timeout
Restart=on-failure

@ -648,9 +648,12 @@ let g:go_fmt_fail_silently = 0
let g:go_fmt_command='gopls'
let g:go_fmt_autosave = 1
" go install mvdan.cc/gofumpt@latest
let g:go_gopls_gofumpt=1
let g:go_gopls_gofumpt = 1
" let g:go_gopls_options = ['-remote=auto']
let g:go_gopls_options = ['-remote=unix;/tmp/.gopls-daemon.sock']
" let lsp handle connecting to gopls
let g:go_gopls_enabled = 0
let g:go_gopls_enabled = 1
augroup vimgo
au!