-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplugins.nix
More file actions
140 lines (110 loc) · 3.9 KB
/
plugins.nix
File metadata and controls
140 lines (110 loc) · 3.9 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
inputs: final: prev:
let
withSrc =
pkg: src:
pkg.overrideAttrs (_: {
inherit src;
});
plugin =
pname: src:
prev.vimUtils.buildVimPlugin {
inherit pname src;
version = "master";
};
pluginNoChecks =
pname: src:
prev.vimUtils.buildVimPlugin {
inherit pname src;
version = "master";
doCheck = false;
#nvimSkipModules = ["spec_init"];
};
in
with inputs;
{
terraform-ls =
with prev;
(buildGoModule rec {
pname = "terraform-ls";
version = "0.27.0";
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
sha256 = "sha256-TWxYCHdzeJtdyPajA3XxqwpDufXnLod6LWa28OHjyms=";
};
vendorHash = "sha256-e/m/8h0gF+kux+pCUqZ7Pw0XlyJ5dL0Zyqb0nUlgfpc=";
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
"-X main.prerelease="
];
# There's a mixture of tests that use networking and several that fail on aarch64
doCheck = false;
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/terraform-ls --help
$out/bin/terraform-ls version | grep "v${version}"
runHook postInstallCheck
'';
meta = with lib; {
description = "Terraform Language Server (official)";
homepage = "https://github.com/hashicorp/terraform-ls";
changelog = "https://github.com/hashicorp/terraform-ls/blob/v${version}/CHANGELOG.md";
license = licenses.mpl20;
maintainers = with maintainers; [
mbaillie
jk
];
};
});
nil = inputs.nil.packages.${prev.system}.nil;
# Packaging plugins with Nix
blamer-nvim = plugin "blamer-nvim" blamer-nvim-src;
colorizer = plugin "colorizer" colorizer-src;
comment-nvim = plugin "comment-nvim" comment-nvim-src;
dracula = plugin "dracula" dracula-nvim;
gruvbox-nvim = plugin "gruvbox-nvim" gruvbox-nvim-src;
fidget = plugin "fidget" fidget-src;
parinfer-rust-nvim = plugin "parinfer-rust" prev.parinfer-rust;
telescope-ui-select = plugin "telescope-ui-select" telescope-ui-select-src;
which-key = plugin "which-key" which-key-src;
vim-illuminate = plugin "vim-illuminate" vim-illuminate-src;
nvim-ufo = plugin "nvim-ufo" nvim-ufo-src;
nvim-async = plugin "nvim-async" nvim-async-src;
myRSetup = (
prev.rWrapper.override {
packages = with prev.rPackages; [
# vscDebugger
ggplot2
dplyr
xts
languageserver
];
}
);
nvim-dap = plugin "nvim-dap" nvim-dap-src;
nvim-dap-virtual-text = plugin "nvim-dap-virtual-text" nvim-dap-virtual-text-src;
nvim-dap-ui = plugin "nvim-dap-ui" nvim-dap-ui-src;
telescope-dap-nvim = plugin "telescope-dap-nvim" telescope-dap-nvim-src;
node-type-nvim = plugin "node-type-nvim" node-type-nvim-src;
floating-input = plugin "floating-input" floating-input-src;
ts-node-action = plugin "ts-node-action" ts-node-action-src;
telescope-dapzzzz = plugin "telescope-dapzzzz" telescope-dapzzzz-src;
nvim-treesitter = plugin "nvim-treesitter" nvim-treesitter-src;
typst-vim = plugin "typst-vim" typst-vim-src;
vim-circom-syntax = plugin "vim-circom-syntax" vim-circom-syntax-src;
ferris-nvim = plugin "ferris-nvim" ferris-nvim-src;
gitlinker-nvim = (plugin "gitlinker-nvim" gitlinker-nvim-src).overrideAttrs (oldAttrs: {
nvimSkipModules = [ "spec_init" ]; # I think this is just used for tests
});
coq-lsp-nvim = plugin "coq-lsp-nvim" coq-lsp-nvim-src;
coqtail = plugin "coqtail" coqtail-src;
ghostty-nvim = plugin "ghostty-nvim" ghostty-nvim-src;
symbols-nvim = plugin "symbols-nvim" symbols-nvim-src;
colorful-winsep-nvim = plugin "colorful-winsep-nvim" colorful-winsep-nvim-src;
telescope-live-grep-args = plugin "telescope-live-grep-args" telescope-live-grep-args-src;
claudecode-nvim = plugin "claudecode-nvim" claudecode-nvim-src;
}