From 6adb4cff21463d58e7a94fd3f8ff7812fd18f16c Mon Sep 17 00:00:00 2001 From: Soliprem Date: Sun, 20 Oct 2024 12:48:37 +0200 Subject: [PATCH] haskell: for some reason now LSP works --- modules/plugins/languages/haskell.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/plugins/languages/haskell.nix b/modules/plugins/languages/haskell.nix index b2df406..460e15f 100644 --- a/modules/plugins/languages/haskell.nix +++ b/modules/plugins/languages/haskell.nix @@ -23,9 +23,9 @@ in { enable = mkEnableOption "Haskell LSP support (haskell-language-server)" // {default = config.vim.languages.enableLSP;}; package = mkOption { - description = "haskell_ls package"; + description = "haskell-language-server package"; type = package; - default = pkgs.haskellPackages.haskell-language-server; + default = pkgs.haskell-language-server; }; }; }; @@ -37,11 +37,11 @@ in { (mkIf cfg.lsp.enable { vim.lsp.lspconfig.enable = true; - vim.lsp.lspconfig.sources.haskell-ls = '' - lspconfig.haskell_ls.setup { + vim.lsp.lspconfig.sources.hls = '' + lspconfig.hls.setup { capabilities = capabilities, - on_attach=default_on_attach, - cmd = "${cfg.lsp.package}/bin/haskell-language-server-wrapper", + on_attach = default_on_attach, + cmd = {"${cfg.lsp.package}/bin/haskell-language-server"}, } ''; })