nvim.nix/nix/neovim-overlay.nix
iofq 7a86861f09
Some checks failed
build / build (nvim-min) (push) Failing after 37m5s
use jj.nvim instead of custom jank
2026-01-19 23:50:07 -06:00

67 lines
1.3 KiB
Nix

# This overlay, when applied to nixpkgs, adds the final neovim derivation to nixpkgs.
{ inputs }:
final: prev:
let
mkNeovim = prev.callPackage ./mkNeovim.nix { pkgs = final; };
dart-nvim = inputs.dart.packages.x86_64-linux.default;
mkPlugin =
src: pname:
prev.vimUtils.buildVimPlugin {
inherit pname src;
version = src.lastModifiedDate;
};
jj-nvim = mkPlugin inputs.jj-nvim "jj-nvim";
plugins = with prev.vimPlugins; [
blink-cmp
blink-ripgrep-nvim
conform-nvim
dart-nvim
jj-nvim
mini-nvim
nvim-autopairs
nvim-lint
nvim-lspconfig
nvim-treesitter.withAllGrammars
nvim-treesitter-textobjects
quicker-nvim
render-markdown-nvim
snacks-nvim
];
basePackages = with prev; [
ripgrep
fd
];
# Extra packages that should be included on nixos but don't need to be bundled
extraPackages = with prev; [
# linters
yamllint
jq
hadolint
nixfmt
shellcheck
golangci-lint
# LSPs
gopls
lua-language-server
nixd
basedpyright
];
in
{
nvim-pkg = mkNeovim {
inherit plugins;
packages = basePackages ++ extraPackages;
};
nvim-min-pkg = mkNeovim {
inherit plugins;
packages = basePackages;
};
nvim-luarc-json = final.mk-luarc-json {
inherit plugins;
};
}