I have set up my Golang language server(gopls) and some helper extensions as mentioned in the go layer at Spacemacs.
I tried to ssh into a pc via TRAMP and open a file remotely, I opened the file but I thought that gopls would work locally(it didn't).
I got this output from Spacemacs:
`1. The language you are trying to use does not have built-in support in lsp-mode. You must install the required support manually. Examples of this are lsp-java or lsp-metals.
The language server that you expect to run is not configured to run for major mode go-mode. You may check that by checking the :major-modes that are passed to lsp-register-client.
You have disabled the lsp-mode clients for that file. (Check lsp-enabled-clients and lsp-disabled-clients).
`
I installed gopls on the remote, added it in the path and I also made a .dir-locals.el file on the remote.
Since the connection is over TRAMP, I checked the link given but I am fairly new to emacs and I dont know where to place the script given, is there a guide or a "plug and play" way to set it up? I tried to put the function inside the user-init() function but I got an error that the function is of type void.
Below is the code snippet I found from the 4th option from the output(:
(lsp-register-client (make-lsp-client :new-connection (lsp-tramp-connection "<binary name (e. g. pyls, rls)>") :major-modes '(python-mode) :remote? t :server-id 'pyls-remote))
I have set up my Golang language server(gopls) and some helper extensions as mentioned in the go layer at Spacemacs.
I tried to ssh into a pc via TRAMP and open a file remotely, I opened the file but I thought that
gopls
would work locally(it didn't).I got this output from Spacemacs:
`1. The language you are trying to use does not have built-in support in lsp-mode. You must install the required support manually. Examples of this are lsp-java or lsp-metals.
I installed
gopls
on the remote, added it in the path and I also made a.dir-locals.el
file on the remote.Since the connection is over TRAMP, I checked the link given but I am fairly new to emacs and I dont know where to place the script given, is there a guide or a "plug and play" way to set it up? I tried to put the function inside the
user-init()
function but I got an error that the function is of typevoid
.Below is the code snippet I found from the 4th option from the output(:
(lsp-register-client (make-lsp-client :new-connection (lsp-tramp-connection "<binary name (e. g. pyls, rls)>") :major-modes '(python-mode) :remote? t :server-id 'pyls-remote))