2022-11-27 19:29:45 +00:00
|
|
|
# Adopted from here: https://github.com/DieracDelta/vimconfig/blob/801b62dd56cfee59574639904a6c95b525725f66/plugins.nix
|
|
|
|
|
2023-02-21 01:45:56 +00:00
|
|
|
inputs: _final: prev:
|
2022-11-27 19:29:45 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
# Use nixpkgs vimPlugin but with source directly from plugin author
|
2024-04-13 13:03:44 +00:00
|
|
|
withSrc =
|
|
|
|
pkg: src:
|
|
|
|
pkg.overrideAttrs (_: {
|
|
|
|
inherit src;
|
|
|
|
});
|
2022-11-27 19:29:45 +00:00
|
|
|
|
2023-07-19 03:36:09 +00:00
|
|
|
# Package plugin - for plugins not found in nixpkgs at all
|
2024-04-13 13:03:44 +00:00
|
|
|
plugin =
|
|
|
|
pname: src:
|
2023-10-08 15:17:55 +00:00
|
|
|
prev.vimUtils.buildVimPlugin {
|
2023-07-19 03:36:09 +00:00
|
|
|
inherit pname src;
|
|
|
|
version = "master";
|
|
|
|
};
|
2024-04-13 13:03:44 +00:00
|
|
|
in
|
|
|
|
{
|
2022-11-27 19:29:45 +00:00
|
|
|
|
2024-02-11 02:04:37 +00:00
|
|
|
vimPlugins = prev.vimPlugins // {
|
|
|
|
|
2024-04-13 13:03:44 +00:00
|
|
|
nvim-lspconfig = withSrc prev.vimPlugins.nvim-lspconfig inputs.nvim-lspconfig-src;
|
2024-02-11 02:04:37 +00:00
|
|
|
cmp-nvim-lsp = withSrc prev.vimPlugins.cmp-nvim-lsp inputs.cmp-nvim-lsp-src;
|
2024-04-13 13:03:44 +00:00
|
|
|
nvim-treesitter = withSrc prev.vimPlugins.nvim-treesitter inputs.nvim-treesitter-src;
|
|
|
|
telescope-nvim = withSrc prev.vimPlugins.telescope-nvim inputs.telescope-nvim-src;
|
|
|
|
telescope-project-nvim = withSrc prev.vimPlugins.telescope-project-nvim inputs.telescope-project-nvim-src;
|
|
|
|
toggleterm-nvim = withSrc prev.vimPlugins.toggleterm-nvim inputs.toggleterm-nvim-src;
|
|
|
|
bufferline-nvim = withSrc prev.vimPlugins.bufferline-nvim inputs.bufferline-nvim-src;
|
|
|
|
nvim-tree-lua = withSrc prev.vimPlugins.nvim-tree-lua inputs.nvim-tree-lua-src;
|
2024-02-11 02:04:37 +00:00
|
|
|
fidget-nvim = withSrc prev.vimPlugins.fidget-nvim inputs.fidget-nvim-src;
|
|
|
|
nvim-lint = withSrc prev.vimPlugins.nvim-lint inputs.nvim-lint-src;
|
|
|
|
|
|
|
|
# Packaging plugins entirely with Nix
|
2024-02-18 14:26:23 +00:00
|
|
|
base16-nvim = plugin "base16-nvim" inputs.base16-nvim-src;
|
2024-02-11 02:04:37 +00:00
|
|
|
baleia-nvim = plugin "baleia-nvim" inputs.baleia-nvim-src;
|
|
|
|
hmts-nvim = plugin "hmts-nvim" inputs.hmts-nvim-src;
|
2024-06-29 00:34:33 +00:00
|
|
|
markview-nvim = plugin "markview-nvim" inputs.markview-nvim-src;
|
2024-02-11 02:04:37 +00:00
|
|
|
};
|
2022-11-27 19:29:45 +00:00
|
|
|
}
|