neovim configuration using rocks.nvim plugin manager
1{
2 description = "My Neovim config flake";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
6 flake-parts.url = "github:hercules-ci/flake-parts";
7 neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
8 };
9
10 outputs = inputs @ {
11 self,
12 nixpkgs,
13 flake-parts,
14 ...
15 }: flake-parts.lib.mkFlake {inherit inputs;} {
16 systems = [
17 "x86_64-linux"
18 "x86_64-darwin"
19 "aarch64-linux"
20 "aarch64-darwin"
21 ];
22 perSystem = { system, ... }: let
23 pkgs = import nixpkgs {
24 inherit system;
25 overlays = [
26 (self: super: {
27 neovim-nightly = inputs.neovim-nightly-overlay.packages.${system}.default;
28 })
29 ];
30 };
31 in {
32 devShells.default = pkgs.mkShell {
33 name = "NativeVim (stable) devShell";
34 buildInputs = [
35 pkgs.neovim
36 pkgs.sumneko-lua-language-server
37 pkgs.stylua
38 ];
39 };
40 devShells.nightly = pkgs.mkShell {
41 name = "NativeVim (nightly) devShell";
42 buildInputs = [
43 pkgs.vim
44 pkgs.neovim-nightly
45 pkgs.sumneko-lua-language-server
46 pkgs.stylua
47 ];
48 };
49 };
50 };
51}
52# vim: set ts=2: