sloth-flake.nvim/examples/simple/flake.nix

33 lines
832 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# If you start your configuration from this example, you should uncomment
# the next line, and delete the one after.
# sloth-flake.url = "github:lemarsu/sloth-flake.nvim";
sloth-flake.url = "../..";
utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
sloth-flake,
utils,
...
}:
utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
packages = rec {
default = neovim;
neovim = sloth-flake.lib.mkNeovimPkg {
inherit pkgs;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
dependencies = with pkgs.vimPlugins; [
telescope-nvim
];
};
};
});
}