tangled
alpha
login
or
join now
althaea.zone
/
candy
0
fork
atom
neovim
0
fork
atom
overview
issues
pulls
pipelines
drop supermaven
marshmallow.tngl.sh
11 months ago
3f29d064
0f72d91f
+110
-198
4 changed files
expand all
collapse all
unified
split
candy
lua
marshmallow
completion.lua
flake.lock
flake.nix
patches
use-env-for-supermaven-binary-path.patch
-10
candy/lua/marshmallow/completion.lua
···
1
1
-- Awaiting mini.completion w/ snippet support...
2
2
-- require("mini.completion").setup()
3
3
4
4
-
if vim.env.CANDY_CHECK == nil then
5
5
-
-- Disable in check phase
6
6
-
require("supermaven-nvim").setup({
7
7
-
disable_inline_completion = true,
8
8
-
disable_keymaps = true,
9
9
-
log_level = "off",
10
10
-
})
11
11
-
end
12
12
-
13
4
local cmp = require("cmp")
14
5
cmp.setup({
15
6
snippet = {
···
30
21
}),
31
22
sources = cmp.config.sources({
32
23
{ name = "nvim_lsp" },
33
33
-
{ name = "supermaven" },
34
24
{ name = "luasnip" },
35
25
{ name = "async_path" },
36
26
}, {
+39
-60
flake.lock
···
5
5
"nixpkgs": "nixpkgs"
6
6
},
7
7
"locked": {
8
8
-
"lastModified": 1728330715,
9
9
-
"narHash": "sha256-xRJ2nPOXb//u1jaBnDP56M7v5ldavjbtR6lfGqSvcKg=",
8
8
+
"lastModified": 1741473158,
9
9
+
"narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=",
10
10
"owner": "numtide",
11
11
"repo": "devshell",
12
12
-
"rev": "dd6b80932022cea34a019e2bb32f6fa9e494dfef",
12
12
+
"rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0",
13
13
"type": "github"
14
14
},
15
15
"original": {
···
57
57
]
58
58
},
59
59
"locked": {
60
60
-
"lastModified": 1733312601,
61
61
-
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
60
60
+
"lastModified": 1741352980,
61
61
+
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
62
62
"owner": "hercules-ci",
63
63
"repo": "flake-parts",
64
64
-
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
64
64
+
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
65
65
"type": "github"
66
66
},
67
67
"original": {
···
78
78
]
79
79
},
80
80
"locked": {
81
81
-
"lastModified": 1733312601,
82
82
-
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
81
81
+
"lastModified": 1741352980,
82
82
+
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
83
83
"owner": "hercules-ci",
84
84
"repo": "flake-parts",
85
85
-
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
85
85
+
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
86
86
"type": "github"
87
87
},
88
88
"original": {
···
100
100
]
101
101
},
102
102
"locked": {
103
103
-
"lastModified": 1733312601,
104
104
-
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
103
103
+
"lastModified": 1741352980,
104
104
+
"narHash": "sha256-+u2UunDA4Cl5Fci3m7S643HzKmIDAe+fiXrLqYsR2fs=",
105
105
"owner": "hercules-ci",
106
106
"repo": "flake-parts",
107
107
-
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
107
107
+
"rev": "f4330d22f1c5d2ba72d3d22df5597d123fdb60a9",
108
108
"type": "github"
109
109
},
110
110
"original": {
···
119
119
"nixpkgs": [
120
120
"nightly",
121
121
"nixpkgs"
122
122
-
],
123
123
-
"nixpkgs-stable": [
124
124
-
"nightly",
125
125
-
"nixpkgs"
126
122
]
127
123
},
128
124
"locked": {
129
129
-
"lastModified": 1734797603,
130
130
-
"narHash": "sha256-ulZN7ps8nBV31SE+dwkDvKIzvN6hroRY8sYOT0w+E28=",
125
125
+
"lastModified": 1742649964,
126
126
+
"narHash": "sha256-DwOTp7nvfi8mRfuL1escHDXabVXFGT1VlPD1JHrtrco=",
131
127
"owner": "cachix",
132
128
"repo": "git-hooks.nix",
133
133
-
"rev": "f0f0dc4920a903c3e08f5bdb9246bb572fcae498",
129
129
+
"rev": "dcf5072734cb576d2b0c59b2ac44f5050b5eac82",
134
130
"type": "github"
135
131
},
136
132
"original": {
···
164
160
"harpoon-nvim": {
165
161
"flake": false,
166
162
"locked": {
167
167
-
"lastModified": 1712688075,
168
168
-
"narHash": "sha256-FZQH38E02HuRPIPAog/nWM55FuBxKp8AyrEldFkoLYk=",
163
163
+
"lastModified": 1739222527,
164
164
+
"narHash": "sha256-L7FvOV6KvD58BnY3no5IudiKTdgkGqhpS85RoSxtl7U=",
169
165
"owner": "ThePrimeagen",
170
166
"repo": "harpoon",
171
171
-
"rev": "0378a6c428a0bed6a2781d459d7943843f374bce",
167
167
+
"rev": "ed1f853847ffd04b2b61c314865665e1dadf22c7",
172
168
"type": "github"
173
169
},
174
170
"original": {
···
187
183
]
188
184
},
189
185
"locked": {
190
190
-
"lastModified": 1733333617,
191
191
-
"narHash": "sha256-nMMQXREGvLOLvUa0ByhYFdaL0Jov0t1wzLbKjr05P2w=",
186
186
+
"lastModified": 1742014779,
187
187
+
"narHash": "sha256-I6fG1zrfdLFcp/imGZElig0BJO3YU0QEXLgvwWoOpJ8=",
192
188
"owner": "hercules-ci",
193
189
"repo": "hercules-ci-effects",
194
194
-
"rev": "56f8ea8d502c87cf62444bec4ee04512e8ea24ea",
190
190
+
"rev": "524637ef84c177661690b924bf64a1ce18072a2c",
195
191
"type": "github"
196
192
},
197
193
"original": {
···
203
199
"neovim-src": {
204
200
"flake": false,
205
201
"locked": {
206
206
-
"lastModified": 1734989976,
207
207
-
"narHash": "sha256-DVlI7ua+VOkqC70WpSbJO+FjQyBEarGZnKoql7I7Unk=",
202
202
+
"lastModified": 1742654371,
203
203
+
"narHash": "sha256-fmOfoKTyGmjouWGFxfJvMdZVX3u2GSZyMlVE9yNhusA=",
208
204
"owner": "neovim",
209
205
"repo": "neovim",
210
210
-
"rev": "c51bf5a6b24928ac04d0bb129b1b424d4c78f28d",
206
206
+
"rev": "f4d9a2983a49c1729f78ffbf6b1e6dcc30215d0d",
211
207
"type": "github"
212
208
},
213
209
"original": {
···
227
223
"treefmt-nix": "treefmt-nix"
228
224
},
229
225
"locked": {
230
230
-
"lastModified": 1734999862,
231
231
-
"narHash": "sha256-CJ3dXoCQzbSR/b8kbswlf/JIGKIN/6c9ywRw2rQAIYY=",
226
226
+
"lastModified": 1742688454,
227
227
+
"narHash": "sha256-gK9nPXWEXVtBWlZCBlwMZynlCDGJ1TtVlRBfC02PNxc=",
232
228
"owner": "nix-community",
233
229
"repo": "neovim-nightly-overlay",
234
234
-
"rev": "0d0beafd94c34915fb951b31e165be5cf1cf3a7c",
230
230
+
"rev": "098d2af8c606ea8adc1b8b3084f454ca681a7ab3",
235
231
"type": "github"
236
232
},
237
233
"original": {
···
258
254
},
259
255
"nixpkgs_2": {
260
256
"locked": {
261
261
-
"lastModified": 1734856068,
262
262
-
"narHash": "sha256-Q+CB1ajsJg4Z9HGHTBAGY1q18KpnnkmF/eCTLUY6FQ0=",
257
257
+
"lastModified": 1742578646,
258
258
+
"narHash": "sha256-GiQ40ndXRnmmbDZvuv762vS+gew1uDpFwOfgJ8tLiEs=",
263
259
"owner": "NixOS",
264
260
"repo": "nixpkgs",
265
265
-
"rev": "93ff48c9be84a76319dac293733df09bbbe3f25c",
261
261
+
"rev": "94c4dbe77c0740ebba36c173672ca15a7926c993",
266
262
"type": "github"
267
263
},
268
264
"original": {
···
274
270
},
275
271
"nixpkgs_3": {
276
272
"locked": {
277
277
-
"lastModified": 1726871744,
278
278
-
"narHash": "sha256-V5LpfdHyQkUF7RfOaDPrZDP+oqz88lTJrMT1+stXNwo=",
273
273
+
"lastModified": 1742578646,
274
274
+
"narHash": "sha256-GiQ40ndXRnmmbDZvuv762vS+gew1uDpFwOfgJ8tLiEs=",
279
275
"owner": "NixOS",
280
276
"repo": "nixpkgs",
281
281
-
"rev": "a1d92660c6b3b7c26fb883500a80ea9d33321be2",
277
277
+
"rev": "94c4dbe77c0740ebba36c173672ca15a7926c993",
282
278
"type": "github"
283
279
},
284
280
"original": {
···
296
292
"nightly": "nightly",
297
293
"nixpkgs": "nixpkgs_3",
298
294
"stay-in-place-nvim": "stay-in-place-nvim",
299
299
-
"supermaven-nvim": "supermaven-nvim",
300
295
"tolerable": "tolerable"
301
296
}
302
297
},
···
316
311
"type": "github"
317
312
}
318
313
},
319
319
-
"supermaven-nvim": {
320
320
-
"flake": false,
321
321
-
"locked": {
322
322
-
"lastModified": 1728314930,
323
323
-
"narHash": "sha256-1z3WKIiikQqoweReUyK5O8MWSRN5y95qcxM6qzlKMME=",
324
324
-
"owner": "supermaven-inc",
325
325
-
"repo": "supermaven-nvim",
326
326
-
"rev": "07d20fce48a5629686aefb0a7cd4b25e33947d50",
327
327
-
"type": "github"
328
328
-
},
329
329
-
"original": {
330
330
-
"owner": "supermaven-inc",
331
331
-
"repo": "supermaven-nvim",
332
332
-
"type": "github"
333
333
-
}
334
334
-
},
335
314
"tolerable": {
336
315
"inputs": {
337
316
"nightly": [
···
342
321
]
343
322
},
344
323
"locked": {
345
345
-
"lastModified": 1735006360,
346
346
-
"narHash": "sha256-Nsip3NjLcGsDeTb0eWYNKfHHzE5R2pDRH58I348Z4Z8=",
324
324
+
"lastModified": 1742696745,
325
325
+
"narHash": "sha256-57jlygyNVeCgFiVSvNqdErMlE6NiWaIxQ0XlHoMTEL8=",
347
326
"owner": "wires-org",
348
327
"repo": "tolerable-nvim-nix",
349
349
-
"rev": "ffdc8eb5e0d45848430567a35105234414239af1",
328
328
+
"rev": "bb3c4788849428cb5ec852a529e6e99b9396727c",
350
329
"type": "github"
351
330
},
352
331
"original": {
···
363
342
]
364
343
},
365
344
"locked": {
366
366
-
"lastModified": 1734982074,
367
367
-
"narHash": "sha256-N7M37KP7cHWoXicuE536GrVvU8nMDT/gpI1kja2hkdg=",
345
345
+
"lastModified": 1742370146,
346
346
+
"narHash": "sha256-XRE8hL4vKIQyVMDXykFh4ceo3KSpuJF3ts8GKwh5bIU=",
368
347
"owner": "numtide",
369
348
"repo": "treefmt-nix",
370
370
-
"rev": "e41e948cf097cbf96ba4dff47a30ea6891af9f33",
349
349
+
"rev": "adc195eef5da3606891cedf80c0d9ce2d3190808",
371
350
"type": "github"
372
351
},
373
352
"original": {
+71
-99
flake.nix
···
17
17
inputs.harpoon-nvim.flake = false;
18
18
inputs.stay-in-place-nvim.url = "github:gbprod/stay-in-place.nvim";
19
19
inputs.stay-in-place-nvim.flake = false;
20
20
-
inputs.supermaven-nvim.url = "github:supermaven-inc/supermaven-nvim";
21
21
-
inputs.supermaven-nvim.flake = false;
22
20
23
21
outputs = inputs:
24
22
inputs.flake-parts.lib.mkFlake {inherit inputs;} ({config, ...}: {
···
42
40
...
43
41
}: {
44
42
packages = {
45
45
-
neovim =
46
46
-
(inputs.tolerable.makeNightlyNeovimConfig "candy" {
47
47
-
inherit pkgs;
48
48
-
src = lib.fileset.toSource {
49
49
-
root = ./.;
50
50
-
fileset = ./candy;
51
51
-
};
52
52
-
config = {
53
53
-
plugins = let
54
54
-
opt = plugin: {
55
55
-
inherit plugin;
56
56
-
optional = true;
57
57
-
};
58
58
-
in
59
59
-
with pkgs.vimPlugins; [
60
60
-
lz-n
61
61
-
nvim-treesitter.withAllGrammars
62
62
-
nvim-lspconfig
63
63
-
catppuccin-nvim
64
64
-
kanagawa-nvim
65
65
-
mini-nvim
66
66
-
luasnip
67
67
-
(opt conform-nvim)
68
68
-
plenary-nvim
69
69
-
which-key-nvim
70
70
-
(pkgs.vimUtils.buildVimPlugin {
71
71
-
src = inputs.harpoon-nvim;
72
72
-
name = "harpoon";
73
73
-
})
74
74
-
(pkgs.vimUtils.buildVimPlugin {
75
75
-
src = inputs.supermaven-nvim;
76
76
-
name = "supermaven";
77
77
-
patches = [./patches/use-env-for-supermaven-binary-path.patch];
78
78
-
})
79
79
-
rustaceanvim
80
80
-
nvim-web-devicons
81
81
-
typescript-tools-nvim
82
82
-
direnv-vim
83
83
-
vim-dotenv
84
84
-
(opt nvim-spider)
85
85
-
vim-fugitive
86
86
-
gitsigns-nvim
87
87
-
vim-gnupg
88
88
-
fidget-nvim
89
89
-
presence-nvim
90
90
-
vim-wakatime
91
91
-
92
92
-
# nvim-cmp
93
93
-
nvim-cmp
94
94
-
cmp-nvim-lsp
95
95
-
cmp-cmdline
96
96
-
cmp-async-path
97
97
-
cmp-buffer
98
98
-
luasnip
99
99
-
cmp_luasnip
100
100
-
];
101
101
-
};
102
102
-
})
103
103
-
.overrideAttrs (old: {
104
104
-
generatedWrapperArgs = with pkgs;
105
105
-
old.generatedWrapperArgs
106
106
-
or []
107
107
-
++ [
108
108
-
"--prefix"
109
109
-
"PATH"
110
110
-
":"
111
111
-
(
112
112
-
lib.makeBinPath [
113
113
-
curl
114
114
-
git
115
115
-
stylua
116
116
-
prettierd
117
117
-
black
118
118
-
alejandra
119
119
-
taplo
120
120
-
lua-language-server
121
121
-
nil
122
122
-
statix
123
123
-
nodePackages.typescript-language-server
124
124
-
tailwindcss-language-server
125
125
-
nodePackages.sql-formatter
126
126
-
gopls
127
127
-
golangci-lint-langserver
128
128
-
golangci-lint
129
129
-
pyright
130
130
-
tinymist
131
131
-
]
132
132
-
)
133
133
-
"--prefix"
134
134
-
"SUPERMAVEN_BINARY"
135
135
-
":"
136
136
-
(pkgs.fetchurl {
137
137
-
url = "https://supermaven-public.s3.amazonaws.com/sm-agent/v2/8/linux-musl/x86_64/sm-agent";
138
138
-
hash = "sha256-ibnrpykmc0Ao5Hh3aAWVxdnqzPLCtIyQxoOU1vWrCXQ=";
139
139
-
executable = true;
140
140
-
name = "supermaven-binary";
43
43
+
neovim = inputs.tolerable.makeNightlyNeovimConfig "candy" {
44
44
+
inherit pkgs;
45
45
+
src = lib.fileset.toSource {
46
46
+
root = ./.;
47
47
+
fileset = ./candy;
48
48
+
};
49
49
+
path = with pkgs; [
50
50
+
curl
51
51
+
git
52
52
+
stylua
53
53
+
prettierd
54
54
+
black
55
55
+
alejandra
56
56
+
taplo
57
57
+
lua-language-server
58
58
+
nil
59
59
+
statix
60
60
+
nodePackages.typescript-language-server
61
61
+
tailwindcss-language-server
62
62
+
nodePackages.sql-formatter
63
63
+
gopls
64
64
+
golangci-lint-langserver
65
65
+
golangci-lint
66
66
+
pyright
67
67
+
tinymist
68
68
+
];
69
69
+
config = {
70
70
+
plugins = let
71
71
+
opt = plugin: {
72
72
+
inherit plugin;
73
73
+
optional = true;
74
74
+
};
75
75
+
in
76
76
+
with pkgs.vimPlugins; [
77
77
+
lz-n
78
78
+
nvim-treesitter.withAllGrammars
79
79
+
nvim-lspconfig
80
80
+
catppuccin-nvim
81
81
+
kanagawa-nvim
82
82
+
mini-nvim
83
83
+
luasnip
84
84
+
(opt conform-nvim)
85
85
+
plenary-nvim
86
86
+
which-key-nvim
87
87
+
(pkgs.vimUtils.buildVimPlugin {
88
88
+
src = inputs.harpoon-nvim;
89
89
+
name = "harpoon";
90
90
+
doCheck = false;
141
91
})
92
92
+
rustaceanvim
93
93
+
nvim-web-devicons
94
94
+
typescript-tools-nvim
95
95
+
direnv-vim
96
96
+
vim-dotenv
97
97
+
(opt nvim-spider)
98
98
+
vim-fugitive
99
99
+
gitsigns-nvim
100
100
+
vim-gnupg
101
101
+
fidget-nvim
102
102
+
presence-nvim
103
103
+
vim-wakatime
104
104
+
105
105
+
# nvim-cmp
106
106
+
nvim-cmp
107
107
+
cmp-nvim-lsp
108
108
+
cmp-cmdline
109
109
+
cmp-async-path
110
110
+
cmp-buffer
111
111
+
luasnip
112
112
+
cmp_luasnip
142
113
];
143
143
-
});
114
114
+
};
115
115
+
};
144
116
145
117
default = config.packages.neovim;
146
118
};
-29
patches/use-env-for-supermaven-binary-path.patch
···
1
1
-
From 369654628e2ac1a5471a3f2f546a172121749f83 Mon Sep 17 00:00:00 2001
2
2
-
From: marshmallow <marshycity@gmail.com>
3
3
-
Date: Fri, 6 Sep 2024 17:54:08 +1000
4
4
-
Subject: [PATCH 1/1] use env for supermaven binary path
5
5
-
6
6
-
---
7
7
-
lua/supermaven-nvim/binary/binary_fetcher.lua | 6 +-----
8
8
-
1 file changed, 1 insertion(+), 5 deletions(-)
9
9
-
10
10
-
diff --git a/lua/supermaven-nvim/binary/binary_fetcher.lua b/lua/supermaven-nvim/binary/binary_fetcher.lua
11
11
-
index fc6572c..2eba9d6 100644
12
12
-
--- a/lua/supermaven-nvim/binary/binary_fetcher.lua
13
13
-
+++ b/lua/supermaven-nvim/binary/binary_fetcher.lua
14
14
-
@@ -121,11 +121,7 @@ function BinaryFetcher:fetch_binary()
15
15
-
end
16
16
-
17
17
-
function BinaryFetcher:local_binary_path()
18
18
-
- if self:platform() == "windows" then
19
19
-
- return self:local_binary_parent_path() .. "/sm-agent.exe"
20
20
-
- else
21
21
-
- return self:local_binary_parent_path() .. "/sm-agent"
22
22
-
- end
23
23
-
+ return vim.env.SUPERMAVEN_BINARY
24
24
-
end
25
25
-
26
26
-
function BinaryFetcher:local_binary_parent_path()
27
27
-
--
28
28
-
2.45.2
29
29
-