fix(nvim): add yaml companion dependencies to pass tests

This commit is contained in:
Yorick Barbanneau 2025-02-04 22:07:55 +01:00
parent 1b286522b4
commit cc597557db

View file

@ -10,16 +10,15 @@ let
url = "https://ftp.nluug.nl/vim/runtime/spell/fr.utf-8.sug";
sha256 = "0294bc32b42c90bbb286a89e23ca3773b7ef50eff1ab523b1513d6a25c6b3f58";
};
fromGitHub = rev: ref: repo:
pkgs.vimUtils.buildVimPlugin {
pname = "${pkgs.lib.strings.sanitizeDerivationName repo}";
version = ref;
src = builtins.fetchGit {
url = "https://github.com/${repo}.git";
ref = ref;
rev = rev;
};
yaml-companion = pkgs.vimUtils.buildVimPlugin {
pname = "yaml-companion";
version = "main";
src = builtins.fetchGit {
url = "https://github.com/someone-stole-my-name/yaml-companion.nvim.git";
rev = "131b0d67bd2e0f1a02e0daf2f3460482221ce3c0";
ref = "main";
};
};
in
{
options.modules.cli.neovim = {
@ -197,13 +196,12 @@ in
type = "lua";
config = ( builtins.readFile ./files/whichkey.lua );
}
# yaml companion
{
plugin = ( fromGitHub
"131b0d67bd2e0f1a02e0daf2f3460482221ce3c0"
"main"
"someone-stole-my-name/yaml-companion.nvim"
);
plugin = yaml-companion.overrideAttrs {
dependencies = [
nvim-lspconfig
];
};
type = "lua";
}
vim-helm