aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/hls/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-07-04 22:45:26 +0200
committerGitHub <noreply@github.com>2021-07-04 22:45:26 +0200
commitd0e0f6812c8f0689315212406e5433eb70b9639a (patch)
tree4d674419fdc485889b3cb1139ed3b80e8155e662 /lua/nvim-lsp-installer/servers/hls/init.lua
parentadd fortls (fortan) (#32) (diff)
downloadmason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar.gz
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar.bz2
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar.lz
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar.xz
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.tar.zst
mason-d0e0f6812c8f0689315212406e5433eb70b9639a.zip
add hls (haskell) (#33)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/hls/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/hls/init.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/servers/hls/init.lua b/lua/nvim-lsp-installer/servers/hls/init.lua
new file mode 100644
index 00000000..1629fd47
--- /dev/null
+++ b/lua/nvim-lsp-installer/servers/hls/init.lua
@@ -0,0 +1,14 @@
+local server = require("nvim-lsp-installer.server")
+local path = require("nvim-lsp-installer.path")
+local zx = require("nvim-lsp-installer.installers.zx")
+
+local root_dir = server.get_server_root_path("haskell")
+
+return server.Server:new {
+ name = "hls",
+ root_dir = root_dir,
+ installer = zx.file("./install.mjs"),
+ default_options = {
+ cmd = { path.concat { root_dir, "hls" }, "--lsp" },
+ },
+}