File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -86,22 +86,8 @@ 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.
You can’t perform that action at this time.
0 commit comments