This commit is contained in:
Rachel Lambda Samuelsson 2023-12-01 20:46:27 +01:00
parent 08b393988f
commit c9325634e6

View File

@ -7,6 +7,7 @@ let username = "rachel";
export PATH="${hpkgs.haskell-language-server}/bin:$PATH"
exec ${hpkgs.haskell-language-server}/bin/haskell-language-server-wrapper "$@"
'';
rzk = hpkgs.rzk;
in
{
home = {
@ -81,6 +82,7 @@ in
idris2
prismlauncher
vimv
rzk
];
stateVersion = "23.11";
};
@ -192,6 +194,17 @@ in
vim.diagnostic.enable(args.buf)
end
})
vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
pattern = { "*.rzk" },
callback = function(arg)
vim.lsp.start({
name = 'rzk-lsp',
cmd = { "${rzk}/bin/rzk", "lsp" },
root_dir = vim.fs.dirname(vim.fs.find('rzk.yaml', { upward = true })[1]),
})
end
})
'';
extraConfig = ''
set rnu nu