Skip to content

Commit

Permalink
chore: add some nvimRequireChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
konradmalik committed Sep 22, 2023
1 parent e174af4 commit 75b25d9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ let
in
rec {
SchemaStore-nvim = buildVim "SchemaStore.nvim" inputs.SchemaStore-nvim;
boole-nvim = buildVim "boole.nvim" inputs.boole-nvim;
boole-nvim = (buildVim "boole.nvim" inputs.boole-nvim).overrideAttrs {
nvimRequireCheck = "boole";
};
cmp-buffer = buildVim "cmp-buffer" inputs.cmp-buffer;
cmp-nvim-lsp = buildVim "cmp-nvim-lsp" inputs.cmp-nvim-lsp;
cmp-path = buildVim "cmp-path" inputs.cmp-path;
Expand All @@ -24,20 +26,29 @@ rec {
dressing-nvim = buildVim "dressing.nvim" inputs.dressing-nvim;
fidget-nvim = buildVim "fidget.nvim" inputs.fidget-nvim;
friendly-snippets = buildVim "friendly-snippets" inputs.friendly-snippets;
gitsigns-nvim = buildNeovim "gitsigns.nvim" inputs.gitsigns-nvim;
gitsigns-nvim = (buildNeovim "gitsigns.nvim" inputs.gitsigns-nvim).overrideAttrs {
doInstallCheck = true;
nvimRequireCheck = "gitsigns";
};
harpoon = (buildVim "harpoon" inputs.harpoon).overrideAttrs {
dependencies = [ plenary-nvim ];
# fails on missing plenary, why? seems like dependencies above are not available during this check.
# so what do they do?
# nvimRequireCheck = "harpoon";
};
heirline-nvim = buildVim "heirline.nvim" inputs.heirline-nvim;
indent-blankline-nvim = buildVim "indent-blankline.nvim" inputs.indent-blankline-nvim;
kanagawa-nvim = buildVim "kanagawa.nvim" inputs.kanagawa-nvim;
luasnip = buildVim "luasnip" inputs.luasnip;
neo-tree-nvim = (buildVim "neo-tree.nvim" inputs.neo-tree-nvim).overrideAttrs {
dependencies = [ plenary-nvim nui-nvim ];
nvimRequireCheck = "neo-tree";
};
neodev-nvim = buildVim "neodev.nvim" inputs.neodev-nvim;
nui-nvim = buildVim "nui.nvim" inputs.nui-nvim;
nvim-cmp = buildNeovim "nvim-cmp" inputs.nvim-cmp;
nvim-cmp = (buildNeovim "nvim-cmp" inputs.nvim-cmp).overrideAttrs {
nvimRequireCheck = "cmp";
};
nvim-dap = buildVim "nvim-dap" inputs.nvim-dap;
nvim-dap-ui = buildVim "nvim-dap-ui" inputs.nvim-dap-ui;
nvim-dap-virtual-text = buildVim "nvim-dap-virtual-text" inputs.nvim-dap-virtual-text;
Expand All @@ -53,8 +64,6 @@ rec {
sed -Ei lua/plenary/curl.lua \
-e 's@(command\s*=\s*")curl(")@\1${curl}/bin/curl\2@'
'';

doInstallCheck = true;
nvimRequireCheck = "plenary";
};
telescope-fzf-native-nvim = (buildVim "telescope-fzf-native.nvim" inputs.telescope-fzf-native-nvim).overrideAttrs {
Expand All @@ -63,6 +72,7 @@ rec {
};
telescope-nvim = (buildNeovim "telescope.nvim" inputs.telescope-nvim).overrideAttrs {
dependencies = [ plenary-nvim ];
nvimRequireCheck = "telescope";
};
undotree = buildVim "undotree" inputs.undotree;
vim-fugitive = buildVim "vim-fugitive" inputs.vim-fugitive;
Expand Down

0 comments on commit 75b25d9

Please sign in to comment.