Skip to content

Emacs lsp-mode client for the arduino language server

License

Notifications You must be signed in to change notification settings

mgrunwald/emacs-lsp-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Emacs lsp-mode client for the arduino language server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published