mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
121 lines
2.6 KiB
Nix
121 lines
2.6 KiB
Nix
# This overlay, when applied to nixpkgs, adds the final neovim derivation to nixpkgs.
|
|
{inputs}: final: prev:
|
|
with final.pkgs.lib; let
|
|
pkgs = final;
|
|
|
|
pkgs-wrapNeovim = inputs.nixpkgs.legacyPackages.${pkgs.system};
|
|
|
|
mkNvimPlugin = src: pname:
|
|
pkgs.vimUtils.buildVimPlugin {
|
|
inherit pname src;
|
|
version = src.lastModifiedDate;
|
|
};
|
|
snipe-nvim = mkNvimPlugin inputs.snipe-nvim "snipe-nvim";
|
|
|
|
mkNeovim = pkgs.callPackage ./mkNeovim.nix { inherit pkgs-wrapNeovim; };
|
|
|
|
all-plugins = with pkgs.vimPlugins; [
|
|
aerial-nvim
|
|
cmp-buffer
|
|
cmp-cmdline
|
|
cmp-nvim-lsp
|
|
cmp-path
|
|
cmp-treesitter
|
|
cmp_luasnip
|
|
diffview-nvim
|
|
eyeliner-nvim
|
|
friendly-snippets
|
|
gitsigns-nvim
|
|
lualine-nvim
|
|
luasnip
|
|
markview-nvim
|
|
mini-nvim
|
|
neogen
|
|
neogit
|
|
none-ls-nvim
|
|
nightfox-nvim
|
|
nvim-cmp
|
|
nvim-lspconfig
|
|
nvim-neoclip-lua
|
|
nvim-treesitter-context
|
|
nvim-treesitter-textobjects
|
|
(nvim-treesitter.withPlugins(p: with p; [
|
|
tree-sitter-bash
|
|
tree-sitter-c
|
|
tree-sitter-comment
|
|
tree-sitter-css
|
|
tree-sitter-dockerfile
|
|
tree-sitter-embedded-template
|
|
tree-sitter-go
|
|
tree-sitter-gomod
|
|
tree-sitter-hcl
|
|
tree-sitter-html
|
|
tree-sitter-javascript
|
|
tree-sitter-json
|
|
tree-sitter-lua
|
|
tree-sitter-make
|
|
tree-sitter-markdown
|
|
tree-sitter-markdown-inline
|
|
tree-sitter-nix
|
|
tree-sitter-php
|
|
tree-sitter-python
|
|
tree-sitter-regex
|
|
tree-sitter-ruby
|
|
tree-sitter-sql
|
|
tree-sitter-toml
|
|
tree-sitter-typescript
|
|
tree-sitter-yaml
|
|
]))
|
|
nvim-web-devicons
|
|
oil-nvim
|
|
scope-nvim
|
|
snipe-nvim
|
|
telescope-fzf-native-nvim
|
|
telescope-nvim
|
|
toggleterm-nvim
|
|
trouble-nvim
|
|
undotree
|
|
which-key-nvim
|
|
];
|
|
|
|
extraPackages = with pkgs; [
|
|
ripgrep
|
|
yamllint
|
|
puppet-lint
|
|
gopls
|
|
python312Packages.jedi-language-server
|
|
nil
|
|
phpactor
|
|
];
|
|
in {
|
|
nvim-pkg = mkNeovim {
|
|
plugins = all-plugins;
|
|
appName = "nvim";
|
|
inherit extraPackages;
|
|
};
|
|
|
|
nvim-min-pkg = mkNeovim {
|
|
plugins = all-plugins;
|
|
appName = "nvim";
|
|
extraPackages = [];
|
|
};
|
|
|
|
nvim-luarc-json = final.mk-luarc-json {
|
|
plugins = all-plugins;
|
|
};
|
|
|
|
# You can add as many derivations as you like.
|
|
# Use `ignoreConfigRegexes` to filter out config
|
|
# files you would not like to include.
|
|
#
|
|
# For example:
|
|
#
|
|
# nvim-pkg-no-telescope = mkNeovim {
|
|
# plugins = [];
|
|
# ignoreConfigRegexes = [
|
|
# "^plugin/telescope.lua"
|
|
# "^ftplugin/.*.lua"
|
|
# ];
|
|
# inherit extraPackages;
|
|
# };
|
|
}
|