;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\310\311\301\312\313& \210\314\315\316\305#\210\317\211\203=\211@\315N\2036\316N\2046\320\316\315N#\210A\266\202\202\210\321\315\316\322#\210\323\316\324\325\326DD\327\330\331\311\304&\210\314\332\333\305#\210\317\211\203{\211@\332N\203t\333N\204t\320\333\332N#\210A\266\202\202Z\210\321\332\333\322#\210\323\333\324\325\334DD\335\330\336\311\304&\210\314\337\340\305#\210\317\211\203\271\211@\337N\203\262\340N\204\262\320\340\337N#\210A\266\202\202\230\210\321\337\340\322#\210\323\340\324\325\341DD\342\330\343\311\304&\210\314\344\345\305#\210\317\211\203\367\211@\344N\203\360\345N\204\360\320\345\344N#\210A\266\202\202\326\210\321\344\345\322#\210\323\345\324\325\346DD\347\330\350\311\304\351\352\312\353& \210\314\354\355\305#\210\317\211\2039\211@\354N\2032\355N\2042\320\355\354N#\210A\266\202\202\210\321\354\355\322#\210\323\355\324\325\356DD\357\330\360\311\304\351\352\312\361& \210\323\362\324\325\363DD\364\307\365\311\304\330\350\312\366& \210\314\367\370\305#\210\317\211\203\216\211@\367N\203\207\370N\204\207\320\370\367N#\210A\266\202\202m\210\321\367\370\322#\210\323\370\324\325\371DD\372\330\373\311\304\351\352\312\374& \210\314\375\376\305#\210\317\211\203\320\211@\375N\203\311\376N\204\311\320\376\375N#\210A\266\202\202\257\210\321\375\376\322#\210\314\377\376\305#\210\317\211\203\377\211@\377N\203\370\376N\204\370\320\376\377N#\210A\266\202\202\336\210\321\377\376\322#\207" [require lsp-mode lsp-completion custom-declare-group lsp-go nil "LSP support for the Go Programming Language, using the gopls language server." :link (url-link "https://github.com/golang/tools/blob/master/gopls/README.md") :group :package-version (lsp-mode . "6.3.2") defvaralias lsp-gopls-server-path lsp-go-gopls-server-path (saved-value saved-variable-comment) put make-obsolete-variable "lsp-mode 7.0.1" custom-declare-variable funcall function #[0 "\300\207" [#1="gopls"] 1 #1#] "Path to gopls server binary." :type string lsp-gopls-server-args lsp-go-gopls-server-args #[0 "\300\207" [nil] 1] "Extra CLI arguments for gopls." (repeat string) lsp-gopls-use-placeholders lsp-go-use-placeholders #[0 "\300\207" [t] 1] "Cause gopls to provide placeholder parameter snippets when\ncompleting function calls." boolean lsp-gopls-build-flags lsp-go-build-flags #[0 "\300\207" [#2=[]] 1] "A vector of flags passed on to the build system when invoked,\n applied to queries like `go list'." lsp-string-vector :risky t (lsp-mode "6.2") lsp-gopls-env lsp-go-env #[0 "\300\207" [nil] 1] "`gopls' has the unusual ability to set environment variables,\n intended to affect the behavior of commands invoked by `gopls'\n on the user's behalf. This variable takes a hash table of env\n var names to desired values." (alist :key-type (string :tag "env var name") :value-type (string :tag "value")) (lsp-mode "6.2") lsp-go-directory-filters #[0 "\300\207" [#2#] 1] "A vector of directory filters." (url-link "https://github.com/golang/tools/blob/67e49ef2d0f326051e22a4a55bdf9344ae1a8ed8/gopls/doc/settings.md#directoryfilters-string") (lsp-mode "7.1") lsp-gopls-hover-kind lsp-go-hover-kind #[0 "\300\207" [#3="SynopsisDocumentation"] 1 #3#] "`gopls' allows the end user to select the desired amount of\n documentation returned during e.g. hover and thing-at-point\n operations." (choice (const "SynopsisDocumentation") (const "NoDocumentation") (const "FullDocumentation") (const "SingleLine") (const "Structured")) (lsp-mode "6.2") lsp-gopls-available-codelens lsp-go-available-codelenses lsp-go-available-codelens] 12) #@93 Available codelenses that can be further enabled or disabled through `lsp-go-codelenses'. (defvar lsp-go-available-codelenses '((gc_details . "Toggle the calculation of gc annotations") (generate . "Run `go generate` for a directory") (regenerate_cgo . "Regenerate cgo definitions") (test . "Run `go test` for a specific set of test or benchmark functions (lgeacy)") (tidy . "Run `go mod tidy` for a module") (upgrade_dependency . "Upgrade a dependency") (vendor . "Runs `go mod vendor' for a module")) (#$ . 3744)) #@367 Returns a list suitable for the `:type' field in a `defcustom' used to populate an alist. The input ALIST has the form `(("name" . "documentation sentence") [...])' The returned type provides a tri-state that either: - does not include the element in the alist - sets element to false (actually, :json-false) - sets element to true (actually, t) (fn ALIST) (defalias 'lsp-go--defcustom-available-as-alist-type #[257 "\300\211\203#\211@\301\302A\303\304\305@F\306BBBBB\262A\266\202\202\210\307B\207" [nil cons :tag const :format "" ((choice (const :tag "Enable" t) (const :tag "Disable" :json-false))) set] 11 (#$ . 4269)]) (byte-code "\301\302\303\304#\210\305\211\203(\211@\302N\203!\303N\204!\306\303\302N#\210A\266\202\202\210\307\302\303\310#\210\301\311\303\304#\210\305\211\203W\211@\311N\203P\303N\204P\306\303\311N#\210A\266\202\2026\210\307\311\303\310#\210\312\303\313\314\315DD\316\317\320!\321\322\323\324\325\326& \210\301\327\330\304#\210\305\211\203\233\211@\327N\203\224\330N\204\224\306\330\327N#\210A\266\202\202z\210\307\327\330\310#\210\312\330\313\314\331DD\332\321\322\323\324\317\333& \210\301\334\335\304#\210\305\211\203\333\211@\334N\203\324\335N\204\324\306\335\334N#\210A\266\202\202\272\210\307\334\335\310#\210\312\335\313\314\336DD\337\317\340\321\322&\207" [lsp-go-available-codelenses defvaralias lsp-gopls-codelens lsp-go-codelenses nil (saved-value saved-variable-comment) put make-obsolete-variable "lsp-mode 7.0.1" lsp-go-codelens custom-declare-variable funcall function #[0 "\300\207" [((gc_details . :json-false) (generate . t) (regenerate_cgo . t) (tidy . t) (upgrade_dependency . t) (test . t) (vendor . t))] 1] "Select what codelenses should be enabled or not.\n\nThe codelenses can be found at https://github.com/golang/tools/blob/3fa0e8f87c1aae0a9adc2a63af1a1945d16d9359/internal/lsp/source/options.go#L106-L112." :type lsp-go--defcustom-available-as-alist-type :group lsp-go :risky t :package-version (lsp-mode "7.0") lsp-clients-go-library-directories lsp-go-library-directories #[0 "\300\207" [("/usr")] 1] "List of directories which will be considered to be libraries." (repeat string) lsp-clients-go-library-directories-include-go-modules lsp-go-library-directories-include-go-modules #[0 "\300\207" [t] 1] "Whether or not $GOPATH/pkg/mod should be included as a library directory." boolean] 12) #@253 Calculate go library directories. If `lsp-go-library-directories-include-go-modules' is non-nil and the environment variable GOPATH is set this function will return $GOPATH/pkg/mod along with the value of `lsp-go-library-directories'. (fn WORKSPACE) (defalias 'lsp-go--library-default-directories #[257 " \203K\304\n!\204\305\306!\204!\307\310 \"\203K\305\306\304\n!\"\203K\311\312\313\"r\211q\210\314\315\"\216\316\306\317\313\317\320\321&\322U\203I\323\324ed{!\325PC\"\262*\210\304\n!\203V\326\327\"\207\207" [lsp-go-library-directories lsp-go-library-directories-include-go-modules default-directory emacs-version file-remote-p executable-find "go" version<= "27.0" generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] process-file nil "env" "GOPATH" 0 append string-trim-right "/pkg/mod" mapcar #[257 "\301!P\207" [default-directory file-remote-p] 3 "\n\n(fn PATH)"]] 10 (#$ . 6681)]) (byte-code "\300\301\302\303\304DD\305\306\307\310\311\312\313& \210\300\314\302\303\315DD\316\306\317\310\311\312\320& \210\300\321\302\303\322DD\323\306\317\310\311\312\324& \210\300\325\302\303\326DD\327\306\330\310\311\312\331& \210\300\332\302\303\333DD\334\306\335\310\311\336\337\312\340& \210\300\341\302\303\342DD\343\306\344\310\311\336\337\312\345& \210\300\346\302\303\347DD\350\306\351\310\311\336\337\312\352& \210\300\353\302\303\354DD\355\306\356\310\311\336\337\312\357& \210\360\361!\210\362\363\364\365\366!\367\370\371\372\373\374\375\376\377\337\201@\201A\201B\201C&!\207" [custom-declare-variable lsp-go-link-target funcall function #[0 "\300\207" [#1="godoc.org"] 1 #1#] "Which website to use for displaying Go documentation." :type (choice (const "godoc.org") (const "pkg.go.dev") (string :tag "A custom website")) :group lsp-go :package-version (lsp-mode "7.0.1") lsp-go-links-in-hover #[0 "\300\207" [t] 1] "If non-nil, hover documentation includes links." boolean (lsp-mode "7.1") lsp-go-use-gofumpt #[0 "\300\207" [nil] 1] "If non-nil, use gofumpt formatting." (lsp-mode "7.1") lsp-go-goimports-local #[0 "\300\207" [#2=""] 1 #2#] "Equivalent of the goimports -local flag, which puts imports beginning with\n this string after third-party packages. It should be the prefix of the import\n path whose imports should be grouped separately." string (lsp-mode "7.1") lsp-go-analyses #[0 "\300\207" [nil] 1] "Specify analyses that the user would like to enable or disable. A map of the\n names of analysis passes that should be enabled/disabled. A full list of\n analyzers that gopls uses can be found at\n https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md" (alist :key-type (string :tag "analyzer name") :value-type (boolean :tag "value")) :risky t (lsp-mode "7.1") lsp-go-import-shortcut #[0 "\300\207" [#3="Both"] 1 #3#] "Specifies whether import statements should link to documentation or go to \n definitions." (choice (const "Both") (const "Link") (const "Definition")) (lsp-mode "7.1") lsp-go-symbol-matcher #[0 "\300\207" [#4="Fuzzy"] 1 #4#] "Sets the algorithm that is used when finding workspace symbols." (choice (const "Fuzzy") (const "CaseInsensitive") (const "CaseSensitive")) (lsp-mode "7.1") lsp-go-symbol-style #[0 "\300\207" [#5="Dynamic"] 1 #5#] "Controls how symbols are qualified in symbol responses.\n\n 'Dynamic' uses whichever qualifier results in the highest scoring match for\n the given symbol query. Here a 'qualifier' is any '/' or '.' delimited suffix\n of the fully qualified symbol. i.e. 'to/pkg.Foo.Field' or just 'Foo.Field'.\n\n 'Full' is fully qualified symbols, i.e. 'path/to/pkg.Foo.Field'.\n\n 'Package' is package qualified symbols i.e. 'pkg.Foo.Field'." (choice (const "Dynamic") (const "Full") (const "Package")) (lsp-mode "7.1") lsp-register-custom-settings (("gopls.usePlaceholders" lsp-go-use-placeholders t) ("gopls.hoverKind" lsp-go-hover-kind) ("gopls.buildFlags" lsp-go-build-flags) ("gopls.env" lsp-go-env) ("gopls.linkTarget" lsp-go-link-target) ("gopls.codelenses" lsp-go-codelenses) ("gopls.linksInHover" lsp-go-links-in-hover t) ("gopls.gofumpt" lsp-go-use-gofumpt t) ("gopls.local" lsp-go-goimports-local) ("gopls.directoryFilters" lsp-go-directory-filters) ("gopls.analyses" lsp-go-analyses) ("gopls.importShortcut" lsp-go-import-shortcut) ("gopls.symbolMatcher" lsp-go-symbol-matcher) ("gopls.symbolStyle" lsp-go-symbol-style)) lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 " B\207" [lsp-go-gopls-server-path lsp-go-gopls-server-args] 2] :major-modes (go-mode go-dot-mod-mode) :language-id "go" :priority 0 :server-id gopls :completion-in-comments\? :library-folders-fn lsp-go--library-default-directories :after-open-fn #[0 "\301\300!\210\302\211\207" [lsp-completion-filter-on-incomplete make-local-variable nil] 2]] 18) (defconst lsp-go-plist-value-when-compiled nil) (provide 'lsp-go)