Skip to content

Commit

Permalink
haskell: for some reason now LSP works
Browse files Browse the repository at this point in the history
  • Loading branch information
Soliprem committed Nov 9, 2024
1 parent c360f29 commit 6adb4cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/plugins/languages/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
};
Expand All @@ -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"},
}
'';
})
Expand Down

0 comments on commit 6adb4cf

Please sign in to comment.