Last active
February 9, 2023 02:37
-
-
Save d8660091/dc96d502246357cb090c36e9520010f2 to your computer and use it in GitHub Desktop.
Emacs lsp-mode for Tramp golang files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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