From 6abaecda407c00e71190a0c33571bdf6fe6afb99 Mon Sep 17 00:00:00 2001 From: Arthur Wambst Date: Wed, 23 Apr 2025 20:28:47 +0200 Subject: [PATCH] trying fixes for cmp --- flake.lock | 15 ++++++++++++++- flake.nix | 11 ++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 3a71978..19ab9fd 100644 --- a/flake.lock +++ b/flake.lock @@ -314,6 +314,18 @@ "url": "https://github.com/neovim/nvim-lspconfig" } }, + "plugin-vim-vsnip": { + "flake": false, + "locked": { + "narHash": "sha256-6l/g/qubjkDpsI6u0VlkmbK6+pT8IKJ/GKJrbfQURPk=", + "type": "file", + "url": "https://github.com/hrsh7th/vim-vsnip" + }, + "original": { + "type": "file", + "url": "https://github.com/hrsh7th/vim-vsnip" + } + }, "root": { "inputs": { "neovim": "neovim", @@ -326,7 +338,8 @@ "plugin-cmp-vsnip": "plugin-cmp-vsnip", "plugin-dracula": "plugin-dracula", "plugin-gruvbox": "plugin-gruvbox", - "plugin-lsp": "plugin-lsp" + "plugin-lsp": "plugin-lsp", + "plugin-vim-vsnip": "plugin-vim-vsnip" } }, "treefmt-nix": { diff --git a/flake.nix b/flake.nix index 4ae4067..5f63732 100644 --- a/flake.nix +++ b/flake.nix @@ -59,7 +59,16 @@ ]; programs.neovim = { enable = true; - configure.customRC = '' + packages.myTetspkg = { + start = [ + (pkgs.vimUtils.buildVimPluginFrom2Nix { + pname = "nvim-cmp"; + version = "latest"; + src = inputs.plugin-cmp; + }) + ]; + }; + configure.customRC = '' set runtimepath+=${inputs.plugin-dracula} set runtimepath+=${inputs.plugin-lsp} set runtimepath+=${inputs.plugin-cmp}