-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
231 lines (191 loc) · 5.7 KB
/
default.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{ pkgs, extraRC ? "", extraStartPlugins ? [], extraOptPlugins ? [] }:
let
vim-godot = pkgs.vimUtils.buildVimPlugin {
pname = "vim-godot";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "habamax";
repo = "vim-godot";
rev = "c68ce5504fa64b31a5bc3029460faa84f84b598c";
sha256 = "sha256-Fvoh4Z1T8yr19kTqg0YG9xHBVibdFyWtIcSFB9TEQ7c=";
};
};
vim-tidal = pkgs.vimUtils.buildVimPlugin rec {
pname = "vim-tidal";
version = "1.4.8";
src = pkgs.fetchFromGitHub {
owner = "tidalcycles";
repo = "vim-tidal";
rev = version;
sha256 = "sha256-c12v9+s/JspQ9Am291RFI7eg0UAeXGDvJ5lK+7ukOb0=";
};
patchPhase = "rm Makefile";
};
leap-spooky-nvim = pkgs.vimUtils.buildVimPlugin rec {
pname = "leap-spooky-nvim";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "ggandor";
repo = "leap-spooky.nvim";
rev = "3e940464b1728b22052dd565accc949c0b02b025";
sha256 = "sha256-mkbfGTSLCB2Srjjk3FfacP7HazxwSW0F/7AOfp/vv/g=";
};
};
# Pin fidget.nvim to 'legacy' branch because it "will soon be completely rewritten"
fidget-nvim = pkgs.vimUtils.buildVimPlugin rec {
pname = "fidget-nvim";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "j-hui";
repo = "fidget.nvim";
rev = "90c22e47be057562ee9566bad313ad42d622c1d3";
sha256 = "sha256-N3O/AvsD6Ckd62kDEN4z/K5A3SZNR15DnQeZhH6/Rr0=";
};
};
typst-preview = pkgs.vimUtils.buildVimPlugin rec {
pname = "typst-preview-nvim";
version = "unstable";
src = pkgs.fetchFromGitHub {
owner = "chomosuke";
repo = "typst-preview.nvim";
rev = "15eaaffc0a2d8cd871f485f399d1d67ed3322a0b";
sha256 = "sha256-33clHm4XRfbYKSYrofm1TEaUV2UCIFVqNAc6Js8sTzY=";
};
};
in
pkgs.neovim.override {
configure = {
customRC = ''
source ${./lua/init.lua}
lua << EOF
--local haskell_highlight_grammar_file = io.open("${./tree-sitter-haskell/highlights.scm}")
--local haskell_highlight_grammar = haskell_highlight_grammar_file:read('a')
--haskell_highlight_grammar_file:close()
--vim.treesitter.query.set("haskell", "highlights", haskell_highlight_grammar)
EOF
${extraRC}
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
# Library
plenary-nvim
# Colorscheme
#gruvbox-nvim
kanagawa-nvim
gruvbox-community
tokyonight-nvim
# 's' jump (sneak with addidional label / lightspeed replacement)
leap-nvim
leap-spooky-nvim
# Various commands that add, change and remove brackets, quotes and tags.
vim-surround
# Jump to any location by showing helper marks.
vim-easymotion
comment-nvim
# Provides hook that allows other plugins to register repeat actions ('.')
vim-repeat
# Increment and decrement dates and times with <Ctrl-A> and <Ctrl-X>
vim-speeddating
# Mark whitespace red
vim-better-whitespace
# Multi-cursor. <C-n> to start/add cursor on next match, press 'q' to
# skip match, then do an operation ('i', 'a', 'c', 'p', ...).
# See manual for more options.
vim-visual-multi
# Fuzzy finder
telescope-nvim
telescope-symbols-nvim
telescope-fzf-native-nvim
dressing-nvim
nvim-notify
#fzfWrapper
#fzf-vim
which-key-nvim
# neovim native language server support
nvim-lspconfig
null-ls-nvim
# debug adapter
nvim-dap
nvim-dap-ui
# rust
rustaceanvim
crates-nvim
# neovim config/plugin development
neodev-nvim
# Diagnostics UI
trouble-nvim
lsp_lines-nvim
# Show lsp status and log in the corner
fidget-nvim
# Completion
nvim-cmp
cmp-nvim-lsp
cmp-buffer
cmp-path
cmp-cmdline
cmp_luasnip
# Snippets
luasnip
# treesitter
(nvim-treesitter.withPlugins (
plugins: with plugins; [
#tree-sitter-haskell
tree-sitter-nix
tree-sitter-lua
tree-sitter-python
tree-sitter-rust
tree-sitter-c
tree-sitter-cpp
tree-sitter-zig
tree-sitter-json
tree-sitter-yaml
tree-sitter-toml
tree-sitter-html
tree-sitter-css
tree-sitter-scss
tree-sitter-javascript
tree-sitter-latex
tree-sitter-bibtex
tree-sitter-markdown
tree-sitter-gdscript
tree-sitter-godot-resource
tree-sitter-dockerfile
]
))
playground
# treesitter-based dimming of inactive code
twilight-nvim
# highlight other occurences of the word under the cursor
#vim-illuminate
nvim-gdb
vim-highlightedyank
#vim-numbertoggle
# A Vim plugin which shows a git diff in the 'gutter' (sign column).
#vim-gitgutter
gitsigns-nvim
nvim-web-devicons
nvim-tree-lua
# Better status bar
lualine-nvim
bufferline-nvim
bufdelete-nvim
# Nix syntax highlighting
vim-nix
# Web development
vim-svelte
# Haskell syntax highlighting
#haskell-vim
# Godot
vim-godot
# GLSL shader (.glsl, .frag, .vert, ...)
vim-glsl
# music livecoding
vim-tidal
# documents
typst-preview
] ++ extraStartPlugins;
opt = [
] ++ extraOptPlugins;
};
};
}