Skip to content

Commit

Permalink
Add Helix installation instructions (#376)
Browse files Browse the repository at this point in the history
* Add helix installation instructions
  • Loading branch information
philipgiuliani authored Sep 19, 2023
1 parent 2ea7be2 commit ee76a0e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
```

0 comments on commit ee76a0e

Please sign in to comment.