haskell for neovim

This commit is contained in:
Ivan Dimitrov 2023-10-22 19:52:48 +03:00
parent 78fa5330e3
commit 504675e25c
2 changed files with 21 additions and 1 deletions

View File

@ -15,7 +15,7 @@ let grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [
];
in
{
imports = [ ./bash.nix ./nix.nix ./lua.nix ./js.nix ./util.nix ];
imports = [ ./hs.nix ./bash.nix ./nix.nix ./lua.nix ./js.nix ./util.nix ];
programs.neovim = {
enable = true;

View File

@ -0,0 +1,20 @@
{ pkgs, lib, ... }:
let grammars = with pkgs.vimPlugins.nvim-treesitter-parsers; [
haskell
];
in
{
programs.neovim = {
extraPackages = with pkgs; [
haskell-language-server
];
plugins = with pkgs.vimPlugins; grammars ++ [
];
extraLuaConfig = ''
addServers({
hls = {}
})
'';
};
}