From c50fae0597e4ff09392bc3507bb79a1fd08ce94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Mon, 18 Oct 2021 09:04:52 +0200 Subject: [PATCH] Use manually installed haskell language server --- symlinks/config/nvim/lua/lsp/servers.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/symlinks/config/nvim/lua/lsp/servers.lua b/symlinks/config/nvim/lua/lsp/servers.lua index 8a182bb..40ac75e 100644 --- a/symlinks/config/nvim/lua/lsp/servers.lua +++ b/symlinks/config/nvim/lua/lsp/servers.lua @@ -8,7 +8,7 @@ local common_config = require("lsp.server_config") local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) -- Lsp default language servers -local servers = { "bashls", "clangd", "cucumber_language_server", "crystalline", "dockerls", "hls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "mint", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" } +local servers = { "bashls", "clangd", "cucumber_language_server", "crystalline", "dockerls", "jsonls", "pyright", "rust_analyzer", "kotlin_language_server", "mint", "vimls", "clojure_lsp", "gopls", "gdscript", "terraformls", "tsserver" } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { on_attach = common_config.on_attach, @@ -42,6 +42,14 @@ lspconfig.omnisharp.setup { capabilities = capabilities } +-- Haskell LS +local hls_bin = vim.fn.glob('$HOME') .. "/lsp/haskell/hls/haskell-language-server-wrapper" +lspconfig.hls.setup { + cmd = { hls_bin, "--lsp" }; + on_attach = common_config.on_attach; + capabilities = capabilities +} + -- Leminx (XML Language server) lspconfig.lemminx.setup { cmd = { "lemminx" };