From dc073eb69f1fdec428ad7442c343e9fc87d9194a Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 23 Dec 2024 21:48:54 -0600 Subject: [PATCH] vimPlugins: remove explicit nvimRequireCheck --- .../editors/vim/plugins/overrides.nix | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 28167b83b6f41d..d34a3427fc1c4c 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -130,17 +130,14 @@ in ]; }; - alpha-nvim = super.alpha-nvim.overrideAttrs { - nvimRequireCheck = "alpha"; - }; - advanced-git-search-nvim = super.advanced-git-search-nvim.overrideAttrs { - dependencies = with super; [ + dependencies = with self; [ telescope-nvim vim-fugitive vim-rhubarb + fzf-lua + plenary-nvim ]; - nvimRequireCheck = "advanced_git_search.utils"; }; astrocore = super.astrocore.overrideAttrs { @@ -162,12 +159,10 @@ in animation-nvim = super.animation-nvim.overrideAttrs { dependencies = [ self.middleclass ]; - nvimRequireCheck = "animation"; }; autosave-nvim = super.autosave-nvim.overrideAttrs { dependencies = [ self.plenary-nvim ]; - nvimRequireCheck = "autosave"; }; auto-session = super.auto-session.overrideAttrs { @@ -221,7 +216,6 @@ in license = lib.licenses.mit; maintainers = with lib.maintainers; [ lightquantum ]; }; - nvimRequireCheck = "barbecue"; }; base46 = super.base46.overrideAttrs { @@ -276,7 +270,7 @@ in ccc-nvim = super.ccc-nvim.overrideAttrs { # ccc auto-discover requires all pass # but there's a bootstrap module that hangs forever if we dont stop on first success - nvimRequireCheck = "ccc"; + nvimSkipModule = "ccc.kit.Thread.Server._bootstrap"; }; chadtree = super.chadtree.overrideAttrs { @@ -289,10 +283,8 @@ in pyyaml std2 ]; - # We need some patches so it stops complaining about not being in a venv patches = [ ./patches/chadtree/emulate-venv.patch ]; - nvimRequireCheck = "chadtree"; }; ChatGPT-nvim = super.ChatGPT-nvim.overrideAttrs { @@ -301,7 +293,6 @@ in plenary-nvim telescope-nvim ]; - nvimRequireCheck = "chatgpt"; }; cheatsheet-nvim = super.cheatsheet-nvim.overrideAttrs { @@ -341,15 +332,15 @@ in postPatch = '' sed -i -e 's/require "health"/vim.health/' lua/clipboard-image/health.lua ''; - nvimRequireCheck = "clipboard-image"; }; cmake-tools-nvim = super.cmake-tools-nvim.overrideAttrs { dependencies = [ self.plenary-nvim ]; - nvimRequireCheck = "cmake-tools"; }; cmd-parser-nvim = super.cmd-parser-nvim.overrideAttrs { + # Has cmd-parser.init.test matched from lua/cmd-parser/init.test.lua + # Can't be required and is only other module nvimRequireCheck = "cmd-parser"; }; @@ -584,7 +575,17 @@ in codecompanion-nvim = super.codecompanion-nvim.overrideAttrs { dependencies = [ self.plenary-nvim ]; - nvimRequireCheck = "codecompanion"; + nvimSkipModule = [ + # Optional provider dependencies + "codecompanion.providers.diff.mini_diff" + "codecompanion.providers.actions.telescope" + "codecompanion.providers.actions.mini_pick" + # Requires setup call + "codecompanion.actions.static" + "codecompanion.actions.init" + # Test + "minimal" + ]; }; codeium-nvim = @@ -689,7 +690,6 @@ in make build rm ruby/command-t/ext/command-t/*.o ''; - nvimRequireCheck = "wincent.commandt"; }; competitest-nvim = super.competitest-nvim.overrideAttrs {