-
Notifications
You must be signed in to change notification settings - Fork 2
/
neovim.nix
70 lines (64 loc) · 1.75 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
{
config = {
perSystem =
{
config,
lib,
pkgs,
...
}:
{
neovim = {
build.initlua = lib.mkForce (
pkgs.writeText "init.lua" ''
vim.opt.exrc = true
vim.cmd.source "${config.neovim.build.before}"
vim.cmd.source "${config.neovim.build.plugins}"
''
);
env.JAVA_DEBUG_JAR = (pkgs.callPackage ./pkgs/java-debug { }) + "/share/java-debug/java-debug.jar";
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."@astrojs/language-server"
nodePackages."@tailwindcss/language-server"
nodePackages.graphql-language-service-cli
nodePackages.typescript
nodePackages.vscode-langservers-extracted
nodePackages.yaml-language-server
nodejs
# data formats
nodePackages.dockerfile-language-server-nodejs
taplo
];
lazy = {
package = (pkgs.callPackage ./pkgs/plugins { }).lazy-nvim;
settings = {
change_detection.enabled = false;
checker.enabled = false;
dev = {
path = "~/Code/neovim";
fallback = false;
};
};
plugins = import ./plugins { inherit pkgs; };
};
};
};
};
}