From ee76a0e41d11380c0e1b381671a2bea049dfb4de Mon Sep 17 00:00:00 2001 From: Philip Giuliani Date: Tue, 19 Sep 2023 05:06:49 +0200 Subject: [PATCH] Add Helix installation instructions (#376) * Add helix installation instructions --- pages/installation.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pages/installation.md b/pages/installation.md index b7401bde5..cad49fb3c 100644 --- a/pages/installation.md +++ b/pages/installation.md @@ -73,6 +73,7 @@ source code is `/my/home/projects/lexical`. 3. [Visual Studio Code](#visual-studio-code) 4. [neovim](#neovim) 5. [Vim + Vim-LSP](#vim--vim-lsp) +6. [Helix](#helix) ### Vanilla Emacs with lsp-mode The emacs instructions assume you're using `use-package`, which you @@ -236,3 +237,23 @@ g:lsp_settings_filetype_elixir = ["lexical"] For more config, debugging help, or getting vim-lsp to work with ALE, see [this example vimrc](https://github.com/jHwls/dotfiles/blob/4425a4feef823512d96b92e5fd64feaf442485c9/vimrc#L239). + +### Helix + +*Note: This configuration is applicable for Helix version 23.09 and above.* + +Add the language server to your `~/.config/helix/languages.toml` config. +In the case that the file doesn't exist yet, you can create a new file at this location. + +```toml +[language-server.lexical] +command = "/my/home/projects/_build/dev/package/lexical/bin/start_lexical.sh" + +[[language]] +name = "elixir" +language-servers = ["lexical"] + +[[language]] +name = "heex" +language-servers = ["lexical"] +```