Skip to content

Commit eb8637c

Browse files
fjlyyoncho
authored andcommitted
lsp-clients: fix disabling snippet completion for go (#658)
This adds the disableFuncSnippet initialization option which is recognized by the bingo language server.
1 parent 93665db commit eb8637c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lsp-clients.el

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,13 @@ defaults to half of your CPU cores."
434434
(defun lsp-clients-go--make-init-options ()
435435
"Init options for golang."
436436
`(:funcSnippetEnabled ,(lsp-clients-go--bool-to-json lsp-clients-go-func-snippet-enabled)
437-
:gocodeCompletionEnabled ,(lsp-clients-go--bool-to-json lsp-clients-go-gocode-completion-enabled)
438-
:formatTool ,lsp-clients-go-format-tool
439-
:goimportsLocalPrefix ,lsp-clients-go-imports-local-prefix
440-
:maxParallelism ,lsp-clients-go-max-parallelism
441-
:useBinaryPkgCache ,lsp-clients-go-use-binary-pkg-cache
442-
:diagnosticsEnabled ,lsp-clients-go-diagnostics-enabled))
437+
:disableFuncSnippet ,(lsp-clients-go--bool-to-json (not lsp-clients-go-func-snippet-enabled))
438+
:gocodeCompletionEnabled ,(lsp-clients-go--bool-to-json lsp-clients-go-gocode-completion-enabled)
439+
:formatTool ,lsp-clients-go-format-tool
440+
:goimportsLocalPrefix ,lsp-clients-go-imports-local-prefix
441+
:maxParallelism ,lsp-clients-go-max-parallelism
442+
:useBinaryPkgCache ,lsp-clients-go-use-binary-pkg-cache
443+
:diagnosticsEnabled ,lsp-clients-go-diagnostics-enabled))
443444

444445
(lsp-register-client
445446
(make-lsp-client :new-connection (lsp-stdio-connection (lambda () lsp-clients-go-server))

0 commit comments

Comments
 (0)