Skip to content

Latest commit

 

History

History
70 lines (35 loc) · 1.97 KB

README.md

File metadata and controls

70 lines (35 loc) · 1.97 KB

Table of Contents

lsp-arduino

What is this?

For now, this is a desperate try to get the arduino language server to work with Emacs lsp-mode. This means:

This does not work yet

Instead, the current state is: When an .ino file is opened, I get this promising message:

LSP :: Connected to [arduinols:35290/starting /home/markus/Arduino/MySensors_Kirchseeon/Notifier].

and the file's modeline displays some kind of spinning wheel/endless progress bar. No lsp features at all are working.

I followed these instructions from the emacs-lsp project to add a new language.

What does it aim to be?

An lsp-mode client for the arduino language server.

Dependencies

  • arduino-language-server
  • arduino cli
  • clangd

If you have the Arduino 2.x IDE installed, you're probably good to go. I haven't tried this, though. Instead, you can go to Arduino Language Server on github and follow their instructions to get everything you need.

Setup

Since this is no proper Emacs package (yet), copy lsp-arduino.el into your load-path and add this to your init.el:

(require 'lsp-arduino)

When you open an arduino file, you should see some LSP messages in your *Messages* buffer.

Customisation

The path to your arduino-language-server and arbitrary parameters can be customized in the lsp-arduino group. You can use this to set your fully qualified board name (fqbn). Get a list of all supported boards with

arduino-cli board listall