aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua1
-rw-r--r--lua/nvim-lsp-installer/servers/purescriptls/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 a3addce7..8ad2b239 100644
--- a/lua/nvim-lsp-installer/server.lua
+++ b/lua/nvim-lsp-installer/server.lua
@@ -24,6 +24,7 @@ local _SERVERS = {
"intelephense",
"jsonls",
"omnisharp",
+ "purescriptls",
"pyright",
"rome",
"rust_analyzer",
diff --git a/lua/nvim-lsp-installer/servers/purescriptls/init.lua b/lua/nvim-lsp-installer/servers/purescriptls/init.lua
new file mode 100644
index 00000000..c992bf75
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/purescriptls/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("purescript")
+
+return server.Server:new {
+ name = "purescriptls",
+ root_dir = root_dir,
+ installer = npm.packages { "purescript-language-server" },
+ default_options = {
+ cmd = { path.concat { root_dir, "node_modules", ".bin", "purescript-language-server" }, "--stdio" },
+ },
+}