Skip to content

Instantly share code, notes, and snippets.

@d8660091
Last active February 9, 2023 02:37
Show Gist options
  • Save d8660091/dc96d502246357cb090c36e9520010f2 to your computer and use it in GitHub Desktop.
Save d8660091/dc96d502246357cb090c36e9520010f2 to your computer and use it in GitHub Desktop.
Emacs lsp-mode for Tramp golang files
(lsp-register-client
(make-lsp-client :new-connection (lsp-tramp-connection (list "gopls" "-remote=auto"))
:major-modes '(go-mode)
:remote? t
:library-folders-fn #'lsp-go--library-default-directories
:server-id 'gopls-remote))
(setq lsp-enable-file-watchers nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment