blob: 6d58d063e808a2195d79a3a136e4b9e808bb7a11 (
plain)
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
|
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
mnw.url = "../../.";
# If you're actually using this, change your input to this:
# mnw.url = "github:Gerg-L/mnw";
};
outputs =
{
nixpkgs,
mnw,
self,
...
}:
{
packages.x86_64-linux =
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
default = mnw.lib.wrap pkgs {
neovim = pkgs.neovim-unwrapped;
luaFiles = [ ./init.lua ];
plugins = {
start = [
pkgs.vimPlugins.lazy-nvim
pkgs.vimPlugins.plenary-nvim
];
# Anything that you're lazy loading should be put here
opt = [
pkgs.vimPlugins.telescope-nvim
];
dev.myconfig = {
# you can use lib.fileset to reduce rebuilds here
# https://noogle.dev/f/lib/fileset/toSource
pure = ./.;
impure =
# This is a hack it should be a absolute path
# here it'll only work from this directory
"/' .. vim.uv.cwd()";
};
};
};
dev = self.packages.x86_64-linux.default.devMode;
};
};
}
|