Merge branch 'main' into avante

This commit is contained in:
Alexandra Østermark 2025-05-18 13:38:32 +02:00
commit 139c18f296
No known key found for this signature in database
GPG key ID: C2B9D34D979B6063
15 changed files with 121 additions and 27 deletions

View file

@ -7,23 +7,20 @@
}: let
inherit (pkgs) vimPlugins;
inherit (lib.trivial) flip;
inherit (builtins) path filter isString;
inherit (builtins) filter isString;
getPin = name: ((pkgs.callPackages ../../../npins/sources.nix {}) // config.vim.pluginOverrides).${name};
noBuildPlug = pname: let
pin = getPin pname;
version = pin.revision or "dirty";
in {
# vim.lazy.plugins relies on pname, so we only set that here
# version isn't needed for anything, but inherit it anyway for correctness
inherit pname version;
outPath = path {
name = "${pname}-0-unstable-${version}";
path = pin.outPath;
version = builtins.substring 0 8 pin.revision;
in
pin.outPath.overrideAttrs {
inherit pname version;
name = "${pname}-${version}";
passthru.vimPlugin = false;
};
passthru.vimPlugin = false;
};
# build a vim plugin with the given name and arguments
# if the plugin is nvim-treesitter, warn the user to use buildTreesitterPlug