blob: 2048a1d64277a2da7bd565c58c103fea46cba090 (
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
53
54
55
56
57
|
{
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;
# all files in the `lua/lazy` folder are now autoloaded, so no need
# for an init.lua in there
initLua = ''
require('myconfig')
require('lz.n').load('lazy')
'';
plugins = {
start = [
pkgs.vimPlugins.lz-n
pkgs.vimPlugins.plenary-nvim
];
# Anything that you're loading lazily 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() .. '/nvim";
};
};
};
dev = self.packages.x86_64-linux.default.devMode;
};
};
}
|