Logo

dev-resources.site

for different kinds of informations.

Configure Helix to use ElixirLS

Published at
6/14/2023
Categories
elixir
helix
lsp
Author
petros
Categories
3 categories in total
elixir
open
helix
open
lsp
open
Author
6 person written this
petros
open
Configure Helix to use ElixirLS

My favorite editor is Zed, but I also like to have Helix configured for quick edits directly in the terminal.

Like Zed, Helix is written in Rust which makes it fast. Helix is a post modern text editor that runs inside the terminal. It uses the VIM philosophy, but changes a few things.

It comes pre-configured with a few things, like syntax highlighting. But it needs some work (minimal) to add things like a language server for your favorite language.

I use Elixir, so I want to configure ElixirLS to work with Helix.

  1. Check if hx already knows where ElixirLS is

    Configured language server: elixir-ls
    Binary for language server: /path/to/elixir-ls/elixir-ls
    Configured debug adapter: None
    Highlight queries: โœ“
    Textobject queries: โœ“
    Indent queries: โœ“
    
  2. If it doesn't know about it (it will report it can't find the binary), or you want a very specific version of ElixirLS, download the latest release from GitHub.

  3. Unzip the archive

  4. Locate language-server.sh and rename it to elixir-ls

    mv /path/to/language-server.sh /path/to/elixir-ls
    
  5. Move the whole ElixirLS folder to a preferred path

  6. Add the following to your .zshrc

    export="/path/to/elixir-ls:$PATH"
    

Now if you run hx --health elixir it should be able to find the server. Helix expects elixir-ls to be in the PATH, that's why we needed to rename language-server.sh.

If you are looking for more information or ways to customize language servers, you can check Helix's documentation.

lsp Article's
30 articles in total
Favicon
How to Setup Vim for Kotlin Development
Favicon
Managing LSPs in Neovim: Enable/Disable for the Entire Session
Favicon
Integrating the ruff language server
Favicon
Series Belajar Solid Principle - Liskov Substitution Principle (LSP)
Favicon
Avoid conflicts between denols and tsserver in Neovim
Favicon
Avoid conflicts between denols and tsserver in Neovim
Favicon
Implementing Payment Gateways with the Liskov Substitution Principle
Favicon
SOLID Principles: Liskov Substitution Principle (LSP)
Favicon
Configure Helix to use ElixirLS
Favicon
The Power of Liskov Substitution Principle in Improving Software Design
Favicon
Neovim config from scratch (Part II)
Favicon
Neovim config from scratch (Part I)
Favicon
Integrating a Language Server (LSP) in a VS Code Extension
Favicon
My Neovim setup for React, TypeScript, Tailwind CSS, etc
Favicon
How i setup neovim for speed up React, Js, Ts, etc
Favicon
Solve nvim lsp denols vs tsserver clash
Favicon
Perl Navigator - Language Server for Perl
Favicon
Neovim LSP Setup + Code Completion Engine
Favicon
NeoVim: init.lua, built in LSP e mais
Favicon
How to fix [deno-ts 2339] in the code for Deno Deploy
Favicon
SOLID e o princรญpio do 6 por meia dรบzia
Favicon
Java LSP in Sublime Text
Favicon
Neovim: Migrando do coc.vim para nvim-lsp
Favicon
Integrating Scala Metals with Doom Emacs using LSP on Pop!_OS/Ubuntu 20.04 LTS
Favicon
Builtin Solidity Language Server
Favicon
Liskov Substitution Principle
Favicon
Emacs as SQL client with LSP
Favicon
Vim Configuration from Minimal to Complete
Favicon
LSP and ISP: The LI of SOLID
Favicon
Go LSP in Sublime Text

Featured ones: