mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(language/go): update lsp-mode setup for gopls
This commit is contained in:
@@ -72,16 +72,13 @@
|
||||
:custom
|
||||
(lsp-go-use-placeholders t)
|
||||
(lsp-go-link-target "pkg.go.dev")
|
||||
(lsp-go-use-gofumpt t)
|
||||
(lsp-go-analyses '((nilness . t)
|
||||
(shadow . t)
|
||||
(unusedparams . t)
|
||||
(unusedwrite . t)))
|
||||
|
||||
:config
|
||||
(lsp-register-custom-settings
|
||||
'(("gopls.allowModfileModifications" t t)
|
||||
("gopls.gofumpt" t t)))
|
||||
|
||||
;; Create custom lsp-client for golangci-lint-langserver.
|
||||
(lsp-register-custom-settings
|
||||
'(("golangci-lint.command" ["golangci-lint" "run" "--out-format" "json"])))
|
||||
|
||||
Reference in New Issue
Block a user