diff --git a/lua/lazyvim/plugins/extras/lang/elm.lua b/lua/lazyvim/plugins/extras/lang/elm.lua new file mode 100644 index 00000000..28c5339f --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/elm.lua @@ -0,0 +1,42 @@ +return { + recommended = { + ft = { "elm" }, + root = { "elm.json" }, + }, + + { + "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-format" }) + end, + }, + + { + "stevearc/conform.nvim", + optional = true, + opts = { + formatters_by_ft = { + elm = { "elm_format" }, + }, + }, + }, + + { + "neovim/nvim-lspconfig", + opts = { + servers = { + elmls = {}, + }, + }, + }, +}