Add support for Elixir LSP via elixir-ls

- Document Elixir with LSP via elixir-ls
- Add ~+lsp~ flag to ~:lang elixir~
This commit is contained in:
Oleksii Filonenko 2019-07-26 21:32:20 +03:00
parent 1a72cf0677
commit 887a36aacf
No known key found for this signature in database
GPG key ID: F3510FE5691629A1
2 changed files with 4 additions and 0 deletions

View file

@ -29,6 +29,9 @@
(sp-local-pair "do " " end" :unless '(sp-in-comment-p sp-in-string-p))
(sp-local-pair "fn " " end" :unless '(sp-in-comment-p sp-in-string-p)))
(when (featurep! +lsp)
(add-hook 'elixir-mode-local-vars-hook #'lsp!))
(use-package! alchemist-company
:when (featurep! :completion company)
:commands alchemist-company

View file

@ -32,6 +32,7 @@ As of this writing, this is the state of LSP support in Doom Emacs:
| Module | Major modes | Default language server |
|------------------+---------------------------------------------------------+---------------------------------------------------------------|
| [[../../lang/cc/README.org][:lang cc]] | c-mode, c++-mode, objc-mode | ccls |
| [[../../lang/elixir/README.org][:lang elixir]] | elixir-mode | elixir-ls |
| [[../../lang/go/README.org][:lang go]] | go-mode | go-langserver |
| [[../../lang/haskell/README.org][:lang haskell]] | haskell-mode | haskell-ide-engine |
| [[../../lang/javascript/README.org][:lang javascript]] | js2-mode, rjsx-mode, typescript-mode | typescript-language-server |