mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(lang): add elm
This commit is contained in:
parent
5a19f6b5fe
commit
76e87bc996
1 changed files with 48 additions and 0 deletions
48
lua/lazyvim/plugins/extras/lang/elm.lua
Normal file
48
lua/lazyvim/plugins/extras/lang/elm.lua
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "elm" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "elm-language-server", "elm-format" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = {
|
||||
elm = { "elm_format" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
elmls = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{ -- neotest config needs improvement from someone more expert than me
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"nvim-neotest/neotest-vim-test",
|
||||
"vim-test/vim-test",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-vim-test"] = {
|
||||
allow_file_types = { "elm" },
|
||||
runner = "elmtest",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue