neovim

drop supermaven

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