haskell: for some reason now LSP works

This commit is contained in:
Soliprem 2024-10-20 12:48:37 +02:00
parent c360f29e25
commit 6adb4cff21

View file

@ -23,9 +23,9 @@ in {
enable = mkEnableOption "Haskell LSP support (haskell-language-server)" // {default = config.vim.languages.enableLSP;}; enable = mkEnableOption "Haskell LSP support (haskell-language-server)" // {default = config.vim.languages.enableLSP;};
package = mkOption { package = mkOption {
description = "haskell_ls package"; description = "haskell-language-server package";
type = package; type = package;
default = pkgs.haskellPackages.haskell-language-server; default = pkgs.haskell-language-server;
}; };
}; };
}; };
@ -37,11 +37,11 @@ in {
(mkIf cfg.lsp.enable { (mkIf cfg.lsp.enable {
vim.lsp.lspconfig.enable = true; vim.lsp.lspconfig.enable = true;
vim.lsp.lspconfig.sources.haskell-ls = '' vim.lsp.lspconfig.sources.hls = ''
lspconfig.haskell_ls.setup { lspconfig.hls.setup {
capabilities = capabilities, capabilities = capabilities,
on_attach = default_on_attach, on_attach = default_on_attach,
cmd = "${cfg.lsp.package}/bin/haskell-language-server-wrapper", cmd = {"${cfg.lsp.package}/bin/haskell-language-server"},
} }
''; '';
}) })