-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathneovim.nix
71 lines (64 loc) · 1.65 KB
/
neovim.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
{
config = {
perSystem =
{
config,
lib,
pkgs,
...
}:
{
neovim = {
build.initlua = lib.mkForce (
pkgs.writeText "init.lua" # lua
''
${builtins.readFile ./before.lua}
vim.cmd.source "${config.neovim.build.before}"
vim.cmd.source "${config.neovim.build.plugins}"
''
);
env = {
JAVA_DEBUG_DIR = "${pkgs.java-debug}/share/java-debug";
JAVA_TEST_DIR = "${pkgs.java-test}/share/java-test";
};
paths = with pkgs; [
fd
gh
git
nushell
ripgrep
# lua
lua-language-server
stylua
# nix
nixd
nixfmt-rfc-style
# shell scripting
nodePackages.bash-language-server
shellcheck
shfmt
# webdev
emmet-language-server
nodePackages.typescript
nodePackages.vscode-langservers-extracted
nodePackages.yaml-language-server
# data formats
taplo
];
lazy = {
package = (pkgs.callPackage ./pkgs/plugins { }).lazy-nvim;
settings = {
change_detection.enabled = false;
checker.enabled = false;
dev = {
path = "~/Code/neovim";
fallback = false;
};
pkg.enabled = false;
};
plugins = import ./plugins { inherit pkgs; };
};
};
};
};
}