-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
73 lines (66 loc) · 1.82 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
description = "Example usage of willruggiano/neovim.nix";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
neovim-nix.url = "github:willruggiano/neovim.nix";
};
outputs = {flake-parts, ...} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.neovim-nix.flakeModule
];
systems = ["x86_64-linux"];
perSystem = {
config,
lib,
pkgs,
...
}: {
neovim = {
env = {
BUILT_WITH_NEOVIM_NIX = "fuck yeah it is";
};
paths = [pkgs.stylua];
lazy = {
settings = {
performance.rtp = {
disabled_plugins = [
"gzip"
"matchit"
"netrwPlugin"
];
};
};
plugins = {
example = {
src = ./example;
init = ''
function()
vim.g.loaded_example_init = true
end
'';
config = ./example.lua;
lazy = false;
priority = 1000;
dependencies = {
lfs = let
package = pkgs.luajitPackages.luafilesystem;
in {
inherit package;
cpath = "${package}/lib/lua/5.1/?.so";
};
plenary = {
package = pkgs.vimPlugins.plenary-nvim;
};
};
paths = [pkgs.luajitPackages.luacheck];
};
};
};
};
checks = config.packages.ci;
packages.default = config.neovim.final;
};
};
}