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