This repository has been archived on 2025-01-07. You can view files and clone it, but cannot push or open issues or pull requests.
opdavies.nvim/flake.nix
Oliver Davies 3afe1bd12b Tidy neovim configuration
* Remove some unused plugins and packages.
  * e.g. floaterm, projectionist, vim-wiki, vim-easy-align,
    vim-surround, visual-star-search, vim-rhubarb
* Replace none-ls with conform.nvim and nvim-lint.
* Replace lualine.nvim with mini-statusline.
* Add neodev.
* Simplify cmp completion sources.
2024-02-24 22:26:31 +00:00

38 lines
767 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-2305.url = "github:NixOS/nixpkgs/nixos-23.05";
};
outputs = inputs @ {
self,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
flake = {
lib = import ./lib {inherit inputs;};
};
systems = ["x86_64-linux"];
perSystem = {
pkgs,
self',
system,
...
}: let
default = self.lib.mkVimPlugin {inherit system;};
neovim = self.lib.mkNeovim {inherit system;};
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [pkgs.just];
};
packages = {inherit default neovim;};
formatter = pkgs.alejandra;
};
};
}