vimrc(go),systemd: update path for gopls.service
This commit is contained in:
parent
11c0821a5d
commit
9233819b6b
@ -3,7 +3,7 @@ Description = Go language server.
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=bash -c "rm -v -f /tmp/.gopls-daemon.sock || true"
|
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"
|
ExecStopPost=bash -c "rm -v -f /tmp/.gopls-daemon.sock || true"
|
||||||
; -remote.listen.timeout
|
; -remote.listen.timeout
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
@ -649,8 +649,11 @@ let g:go_fmt_command='gopls'
|
|||||||
let g:go_fmt_autosave = 1
|
let g:go_fmt_autosave = 1
|
||||||
" go install mvdan.cc/gofumpt@latest
|
" 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 lsp handle connecting to gopls
|
||||||
let g:go_gopls_enabled = 0
|
let g:go_gopls_enabled = 1
|
||||||
|
|
||||||
|
|
||||||
augroup vimgo
|
augroup vimgo
|
||||||
au!
|
au!
|
||||||
|
Loading…
Reference in New Issue
Block a user