diff --git a/plugins/by-name/lspkind/default.nix b/plugins/by-name/lspkind/default.nix index 82898e27..8455f6e3 100644 --- a/plugins/by-name/lspkind/default.nix +++ b/plugins/by-name/lspkind/default.nix @@ -23,7 +23,8 @@ lib.nixvim.plugins.mkNeovimPlugin { cmp = { enable = lib.mkOption { type = types.bool; - default = true; + default = config.plugins.cmp.enable; + defaultText = lib.literalExpression "config.plugins.cmp.enable"; description = "Integrate with nvim-cmp"; }; diff --git a/tests/test-sources/plugins/by-name/lspkind/default.nix b/tests/test-sources/plugins/by-name/lspkind/default.nix index 8f6c28a1..1cbf5282 100644 --- a/tests/test-sources/plugins/by-name/lspkind/default.nix +++ b/tests/test-sources/plugins/by-name/lspkind/default.nix @@ -1,9 +1,6 @@ { empty = { - plugins.lspkind = { - enable = true; - cmp.enable = false; - }; + plugins.lspkind.enable = true; }; example = { @@ -25,10 +22,6 @@ preset = "codicons"; symbol_map = null; }; - cmp = { - enable = false; - after = null; - }; }; }; }