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
|
|
|
|
withSrc = pkg: src: pkg.overrideAttrs (_: { inherit src; });
|
|
|
|
|
2023-07-19 03:36:09 +00:00
|
|
|
# Package plugin - for plugins not found in nixpkgs at all
|
|
|
|
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";
|
|
|
|
};
|
2022-11-27 19:29:45 +00:00
|
|
|
|
|
|
|
in {
|
|
|
|
|
|
|
|
nil = inputs.nil.packages.${prev.system}.nil;
|
2023-07-06 18:07:29 +00:00
|
|
|
vscode-terraform-snippets = inputs.vscode-terraform-snippets;
|
2022-11-27 19:29:45 +00:00
|
|
|
|
2023-08-02 15:51:11 +00:00
|
|
|
nvim-lspconfig = withSrc prev.vimPlugins.nvim-lspconfig inputs.nvim-lspconfig;
|
|
|
|
cmp-nvim-lsp = withSrc prev.vimPlugins.cmp-nvim-lsp inputs.cmp-nvim-lsp;
|
|
|
|
null-ls-nvim = withSrc prev.vimPlugins.null-ls-nvim inputs.null-ls-nvim;
|
|
|
|
comment-nvim = withSrc prev.vimPlugins.comment-nvim inputs.comment-nvim;
|
2022-11-27 19:29:45 +00:00
|
|
|
nvim-treesitter =
|
2023-08-02 15:51:11 +00:00
|
|
|
withSrc prev.vimPlugins.nvim-treesitter inputs.nvim-treesitter;
|
|
|
|
telescope-nvim = withSrc prev.vimPlugins.telescope-nvim inputs.telescope-nvim;
|
|
|
|
telescope-project-nvim = withSrc prev.vimPlugins.telescope-project-nvim
|
|
|
|
inputs.telescope-project-nvim;
|
2022-11-27 19:29:45 +00:00
|
|
|
toggleterm-nvim =
|
2023-08-02 15:51:11 +00:00
|
|
|
withSrc prev.vimPlugins.toggleterm-nvim inputs.toggleterm-nvim;
|
2022-11-27 19:29:45 +00:00
|
|
|
bufferline-nvim =
|
2023-08-02 15:51:11 +00:00
|
|
|
withSrc prev.vimPlugins.bufferline-nvim inputs.bufferline-nvim;
|
|
|
|
nvim-tree-lua = withSrc prev.vimPlugins.nvim-tree-lua inputs.nvim-tree-lua;
|
2023-11-17 02:19:45 +00:00
|
|
|
fidget-nvim = withSrc prev.vimPlugins.fidget-nvim inputs.fidget-nvim;
|
2022-11-27 19:29:45 +00:00
|
|
|
|
2023-07-19 03:36:09 +00:00
|
|
|
# Packaging plugins entirely with Nix
|
|
|
|
baleia-nvim = plugin "baleia-nvim" inputs.baleia-nvim-src;
|
2023-08-03 20:06:47 +00:00
|
|
|
hmts-nvim = plugin "hmts-nvim" inputs.hmts-nvim-src;
|
2022-11-27 19:29:45 +00:00
|
|
|
|
|
|
|
}
|