mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 07:32:55 +00:00
48 lines
1.8 KiB
Nix
48 lines
1.8 KiB
Nix
# Adopted from here: https://github.com/DieracDelta/vimconfig/blob/801b62dd56cfee59574639904a6c95b525725f66/plugins.nix
|
|
|
|
inputs: final: prev:
|
|
|
|
let
|
|
|
|
# Use nixpkgs vimPlugin but with source directly from plugin author
|
|
withSrc = pkg: src: pkg.overrideAttrs (_: { inherit src; });
|
|
|
|
# Package plugin
|
|
plugin = pname: src:
|
|
prev.vimUtils.buildVimPluginFrom2Nix {
|
|
inherit pname src;
|
|
version = "master";
|
|
};
|
|
|
|
in {
|
|
|
|
nil = inputs.nil.packages.${prev.system}.nil;
|
|
|
|
nvim-lspconfig =
|
|
(withSrc prev.vimPlugins.nvim-lspconfig inputs.nvim-lspconfig);
|
|
cmp-nvim-lsp = (withSrc prev.vimPlugins.cmp-nvim-lsp inputs.cmp-nvim-lsp);
|
|
cmp-buffer = (withSrc prev.vimPlugins.cmp-buffer inputs.cmp-buffer);
|
|
plenary-nvim = (withSrc prev.vimPlugins.plenary-nvim inputs.plenary-nvim);
|
|
null-ls-nvim = (withSrc prev.vimPlugins.null-ls-nvim inputs.null-ls-nvim);
|
|
comment-nvim = (withSrc prev.vimPlugins.comment-nvim inputs.comment-nvim);
|
|
nvim-treesitter =
|
|
(withSrc prev.vimPlugins.nvim-treesitter inputs.nvim-treesitter);
|
|
vim-matchup = (withSrc prev.vimPlugins.vim-matchup inputs.vim-matchup);
|
|
telescope-nvim =
|
|
(withSrc prev.vimPlugins.telescope-nvim inputs.telescope-nvim);
|
|
telescope-project-nvim = (withSrc prev.vimPlugins.telescope-project-nvim
|
|
inputs.telescope-project-nvim);
|
|
toggleterm-nvim =
|
|
(withSrc prev.vimPlugins.toggleterm-nvim inputs.toggleterm-nvim);
|
|
gitsigns-nvim = (withSrc prev.vimPlugins.gitsigns-nvim inputs.gitsigns-nvim);
|
|
lualine-nvim = (withSrc prev.vimPlugins.lualine-nvim inputs.lualine-nvim);
|
|
bufferline-nvim =
|
|
(withSrc prev.vimPlugins.bufferline-nvim inputs.bufferline-nvim);
|
|
nvim-tree-lua = (withSrc prev.vimPlugins.nvim-tree-lua inputs.nvim-tree-lua);
|
|
|
|
# Packaging plugins with Nix
|
|
# comment-nvim = plugin "comment-nvim" comment-nvim-src;
|
|
# plenary-nvim = plugin "plenary-nvim" plenary-nvim-src;
|
|
|
|
}
|