I came across this repo arduino-language-server. My question is how to make it connect it to my emacs? (Maybe more generally, how to connect to any other LSP-server?)
Currently I've installed prerequisites, and can run it (as instructed on it's readme
)
./arduino-language-server \
-clangd /usr/local/bin/clangd \
-cli /usr/local/bin/arduino-cli \
-cli-config $HOME/.arduino15/arduino-cli.yaml \
-fqbn esp32:esp32:esp32
This will gives me following:
01:12:49.446042 LS: : Initial board configuration: esp32:esp32:esp32
01:12:49.446069 LS: : arduino-language-server Version: 0.0.0-git Commit: Date:
01:12:49.446080 LS: : Language server build path: /tmp/arduino-language-server951409904
01:12:49.446086 LS: : Language server build sketch root: /tmp/arduino-language-server951409904/sketch
01:12:49.446092 LS: : Language server FULL build path: /tmp/arduino-language-server52033989
arduino-language-server is a language server that provides IDE-like features to editors.
It should be used via an editor plugin rather than invoked directly. For more information, see:
https://github.com/arduino/arduino-language-server/
https://microsoft.github.io/language-server-protocol/