Refactor Vim plugins into its own default.nix

This commit is contained in:
Oliver Davies 2024-12-14 21:05:24 +00:00
parent c26e63315e
commit 4185013014
2 changed files with 17 additions and 12 deletions

View file

@ -2,6 +2,8 @@
let let
inherit (pkgs) callPackage; inherit (pkgs) callPackage;
vimPlugins = callPackage ./vim-plugins { inherit callPackage; };
in in
{ {
build-glove80 = callPackage ./build-glove80.nix { }; build-glove80 = callPackage ./build-glove80.nix { };
@ -9,16 +11,5 @@ in
notes = callPackage ./notes.nix { }; notes = callPackage ./notes.nix { };
notify-battery = callPackage ./notify-battery.nix { }; notify-battery = callPackage ./notify-battery.nix { };
vimPlugins = prev.vimPlugins // { vimPlugins = prev.vimPlugins // vimPlugins;
conf-vim = callPackage ./vim-plugins/conf-vim.nix { };
edit-alternate-vim = callPackage ./vim-plugins/edit-alternate-vim.nix { };
nvim-tmux-navigation = callPackage ./vim-plugins/nvim-tmux-navigation.nix { };
standard-vim = callPackage ./vim-plugins/standard-vim.nix { };
vim-autoread = callPackage ./vim-plugins/vim-autoread.nix { };
vim-caser = callPackage ./vim-plugins/vim-caser.nix { };
vim-heritage = callPackage ./vim-plugins/vim-heritage.nix { };
vim-textobj-indent = callPackage ./vim-plugins/vim-textobj-indent.nix { };
vim-textobj-xmlattr = callPackage ./vim-plugins/vim-textobj-xmlattr.nix { };
vim-zoom = callPackage ./vim-plugins/vim-zoom.nix { };
};
} }

View file

@ -0,0 +1,14 @@
{ callPackage }:
{
conf-vim = callPackage ./conf-vim.nix { };
edit-alternate-vim = callPackage ./edit-alternate-vim.nix { };
nvim-tmux-navigation = callPackage ./nvim-tmux-navigation.nix { };
standard-vim = callPackage ./standard-vim.nix { };
vim-autoread = callPackage ./vim-autoread.nix { };
vim-caser = callPackage ./vim-caser.nix { };
vim-heritage = callPackage ./vim-heritage.nix { };
vim-textobj-indent = callPackage ./vim-textobj-indent.nix { };
vim-textobj-xmlattr = callPackage ./vim-textobj-xmlattr.nix { };
vim-zoom = callPackage ./vim-zoom.nix { };
}