-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pack): add elm language pack (#653)
Co-authored-by: gacallea <[email protected]>
- Loading branch information
1 parent
22b24e7
commit 2f04d6e
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Elm Language Pack | ||
|
||
This plugin pack does the following: | ||
|
||
- Adds `elm` Treesitter parsers | ||
- Adds `elm-language-server` language server | ||
- Adds `elm-format` formatter | ||
|
||
## LSP Configuration | ||
|
||
The default | ||
[elm-language-server](https://github.com/elm-tooling/elm-language-server) | ||
configuration matches all [currently supported features for Neovim | ||
LSP](https://github.com/elm-tooling/elm-language-server#editor-support). | ||
|
||
## A note on elm-test and elm-review | ||
|
||
`elm-test` is not directly supported by [neo-test](../test/neotest) but it's | ||
available via | ||
[neotest-vim-test](https://github.com/nvim-neotest/neotest-vim-test). | ||
|
||
However, it is common practice to peruse both `elm-test` and `elm-review` | ||
directly via the command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
local utils = require "astronvim.utils" | ||
|
||
return { | ||
{ | ||
"nvim-treesitter/nvim-treesitter", | ||
opts = function(_, opts) | ||
if opts.ensure_installed ~= "all" then | ||
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "elm" }) | ||
end | ||
end, | ||
}, | ||
|
||
{ | ||
"williamboman/mason-lspconfig.nvim", | ||
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "elmls" }) end, | ||
}, | ||
|
||
{ | ||
"jay-babu/mason-null-ls.nvim", | ||
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "elm_format" }) end, | ||
}, | ||
} |