Skip to content

Commit 34a3d8c

Browse files
authored
Associate go-dot-mod-mode with gopls. (#2334)
Otherwise lsp-mode doesn't know what client to use with go.mod files.
1 parent 62a8f22 commit 34a3d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/lsp-go.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ $GOPATH/pkg/mod along with the value of
223223
(lsp-register-client
224224
(make-lsp-client :new-connection (lsp-stdio-connection
225225
(lambda () (cons lsp-go-gopls-server-path lsp-go-gopls-server-args)))
226-
:major-modes '(go-mode)
226+
:major-modes '(go-mode go-dot-mod-mode)
227227
:language-id "go"
228228
:priority 0
229229
:server-id 'gopls

0 commit comments

Comments
 (0)