rzk
This commit is contained in:
parent
08b393988f
commit
c9325634e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user