refactor!(go): remove go-guru

BREAKING CHANGE: Removes go-guru from the Go module. It has been
deprecated upstream in favor of gopls, the official Go LSP server.

Close: #7995
Ref: golang/go/issues/65880
Co-authored-by: Henrik Lissner <git@henrik.io>
This commit is contained in:
pancho horrillo 2024-08-21 13:58:26 +02:00 committed by Henrik Lissner
parent c27387ce76
commit 879c0b06a4
4 changed files with 1 additions and 31 deletions

View file

@ -7,8 +7,6 @@
(set-docsets! 'go-mode "Go")
(set-repl-handler! 'go-mode #'gorepl-run)
(set-lookup-handlers! 'go-mode
:definition #'go-guru-definition
:references #'go-guru-referrers
:documentation #'godoc-at-point)
(if (modulep! +lsp)
@ -25,17 +23,7 @@
"e" #'+go/play-buffer-or-region
"i" #'go-goto-imports ; Go to imports
(:prefix ("h" . "help")
"." #'godoc-at-point ; Lookup in godoc
"d" #'go-guru-describe ; Describe this
"v" #'go-guru-freevars ; List free variables
"i" #'go-guru-implements ; Implements relations for package types
"p" #'go-guru-peers ; List peers for channel
"P" #'go-guru-pointsto ; What does this point to
"r" #'go-guru-referrers ; List references to object
"e" #'go-guru-whicherrs ; Which errors
"w" #'go-guru-what ; What query
"c" #'go-guru-callers ; Show callers of this function
"C" #'go-guru-callees) ; Show callees of this function
"." #'godoc-at-point) ; Lookup in godoc
(:prefix ("ri" . "imports")
"a" #'go-import-add
"r" #'go-remove-unused-imports)