@@ -86,25 +86,11 @@ lspconfig.golangci_lint_ls.setup {
86
86
87
87
### Configuration for [ lsp-mode] ( https://github.com/emacs-lsp/lsp-mode ) (Emacs)
88
88
89
- ``` emacs-lisp
90
- (with-eval-after-load 'lsp-mode
91
- (lsp-register-custom-settings
92
- '(("golangci-lint.command"
93
- ["golangci-lint" "run" "--enable-all" "--disable" "lll" "--out-format" "json" "--issues-exit-code=1"])))
94
-
95
- (lsp-register-client
96
- (make-lsp-client :new-connection (lsp-stdio-connection
97
- '("golangci-lint-langserver"))
98
- :activation-fn (lsp-activate-on "go")
99
- :language-id "go"
100
- :priority 0
101
- :server-id 'golangci-lint
102
- :add-on? t
103
- :library-folders-fn #'lsp-go--library-default-directories
104
- :initialization-options (lambda ()
105
- (gethash "golangci-lint"
106
- (lsp-configuration-section "golangci-lint")))))
107
- ```
89
+ Support for golangci-lint-langserver is
90
+ [ built-in] ( https://github.com/emacs-lsp/lsp-mode/blob/master/clients/lsp-golangci-lint.el )
91
+ to lsp-mode since late 2023. When the ` golangci-lint-langserver ` executable is
92
+ found, it is automatically started for Go buffers as an add-on server along with
93
+ the ` gopls ` language server.
108
94
109
95
### Configuration for [ helix] ( https://helix-editor.com/ )
110
96
@@ -121,4 +107,4 @@ command = "golangci-lint-langserver"
121
107
122
108
[language-server .golangci-lint-lsp .config ]
123
109
command = [" golangci-lint" , " run" , " --out-format" , " json" , " --issues-exit-code=1" ]
124
- ```
110
+ ```
0 commit comments