Skip to content

Commit 514e256

Browse files
authored
fix gopls code lenses when using lsp-use-plists (#4903)
1 parent de655e8 commit 514e256

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clients/lsp-go.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ Will update if UPDATE? is t"
453453
:initialized-fn (lambda (workspace)
454454
(let ((caps (lsp--workspace-server-capabilities workspace)))
455455
(unless (lsp-get caps :inlayHintProvider)
456-
(lsp:set-server-capabilities-inlay-hint-provider? caps t))))))
456+
(lsp:set-server-capabilities-inlay-hint-provider? caps t))
457+
(unless (lsp-get caps :codeLensProvider)
458+
(lsp:set-server-capabilities-code-lens-provider? caps t))))))
457459

458460
(lsp-consistency-check lsp-go)
459461

0 commit comments

Comments
 (0)