From 226c62dc9e35876ca6f5ae67385577ec5f3f29d7 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 10 Nov 2022 18:35:52 +0000 Subject: [PATCH] lspkind: add menu --- plugins/completion/lspkind.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/completion/lspkind.nix b/plugins/completion/lspkind.nix index 4a5337b4..dd383331 100644 --- a/plugins/completion/lspkind.nix +++ b/plugins/completion/lspkind.nix @@ -42,6 +42,12 @@ in default = null; description = "Character to show when the popup exceeds maxwidth"; }; + + menu = mkOption { + type = with types; nullOr (attrsOf str); + default = null; + description = "Show source names in the popup"; + }; }; }; @@ -55,6 +61,7 @@ in } // (if doCmp then { maxwidth = cfg.cmp.maxWidth; ellipsis_char = cfg.cmp.ellipsisChar; + menu = cfg.cmp.menu; } else { }); in mkIf cfg.enable {