From e3239b4d328efaaf090892fbca71a1008dbc5a59 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 15 Oct 2024 22:33:42 +0200 Subject: [PATCH] plugins/cmp: add cmp-nixpkgs-maintainers source --- plugins/cmp/sources/default.nix | 4 ++++ tests/test-sources/plugins/cmp/all-sources.nix | 2 ++ 2 files changed, 6 insertions(+) diff --git a/plugins/cmp/sources/default.nix b/plugins/cmp/sources/default.nix index b55302df..7c3d7a66 100644 --- a/plugins/cmp/sources/default.nix +++ b/plugins/cmp/sources/default.nix @@ -109,6 +109,10 @@ let pluginName = "cmp_luasnip"; sourceName = "luasnip"; } + { + pluginName = "cmp-nixpkgs-maintainers"; + sourceName = "nixpkgs_maintainers"; + } { pluginName = "cmp-nvim-lsp"; sourceName = "nvim_lsp"; diff --git a/tests/test-sources/plugins/cmp/all-sources.nix b/tests/test-sources/plugins/cmp/all-sources.nix index b46f7295..7d1980e8 100644 --- a/tests/test-sources/plugins/cmp/all-sources.nix +++ b/tests/test-sources/plugins/cmp/all-sources.nix @@ -21,6 +21,8 @@ "cmp_ai" # Triggers the warning complaining about treesitter highlighting being disabled "otter" + # Invokes the `nix` command at startup which is not available in the sandbox + "nixpkgs_maintainers" ] ++ optional (pkgs.stdenv.hostPlatform.system == "aarch64-linux") "cmp_tabnine"; in pipe config.cmpSourcePlugins [