aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-05-18 21:31:36 +0200
committerGitHub <noreply@github.com>2021-05-18 21:31:36 +0200
commitc8f21d620d7c7d596458088e989169ac2ca93936 (patch)
tree45131a7664f5a278e45280c4fff58c4d8b6e8e9b /lua
parentinstallers/zx: add missing early returns (diff)
downloadmason-c8f21d620d7c7d596458088e989169ac2ca93936.tar
mason-c8f21d620d7c7d596458088e989169ac2ca93936.tar.gz
mason-c8f21d620d7c7d596458088e989169ac2ca93936.tar.bz2
mason-c8f21d620d7c7d596458088e989169ac2ca93936.tar.lz
mason-c8f21d620d7c7d596458088e989169ac2ca93936.tar.xz
mason-c8f21d620d7c7d596458088e989169ac2ca93936.tar.zst
mason-c8f21d620d7c7d596458088e989169ac2ca93936.zip
servers: add elmls (#17)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua1
-rw-r--r--lua/nvim-lsp-installer/servers/elmls/init.lua14
2 files changed, 15 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua
index 60e96851..d9f8d6e2 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -10,6 +10,7 @@ local _SERVERS = {
"cssls",
"denols",
"dockerls",
+ "elmls",
"eslintls",
"gopls",
"graphql",
diff --git a/lua/nvim-lsp-installer/servers/elmls/init.lua b/lua/nvim-lsp-installer/servers/elmls/init.lua
new file mode 100644
index 00000000..f16271dc
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/elmls/init.lua
@@ -0,0 +1,14 @@
+local server = require("nvim-lsp-installer.server")
+local path = require("nvim-lsp-installer.path")
+local npm = require("nvim-lsp-installer.installers.npm")
+
+local root_dir = server.get_server_root_path("elm")
+
+return server.Server:new {
+ name = "elmls",
+ root_dir = root_dir,
+ installer = npm.packages { "elm", "elm-test", "elm-format", "@elm-tooling/elm-language-server" },
+ default_options = {
+ cmd = { path.concat { root_dir, "node_modules", ".bin", "elm-language-server" } },
+ }
+}