mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
haskell: for some reason now LSP works
This commit is contained in:
parent
accd26bd83
commit
8268f13bdd
1 changed files with 6 additions and 6 deletions
|
@ -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"},
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue