From fce64dd0845f2dca6185eb74465d3a33832fee33 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Damaschke Date: Wed, 4 Jun 2025 03:11:20 +0200 Subject: [PATCH] fix(blink-cmp): Extended auto_show type --- modules/plugins/completion/blink-cmp/blink-cmp.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/plugins/completion/blink-cmp/blink-cmp.nix b/modules/plugins/completion/blink-cmp/blink-cmp.nix index 27a026ad..5d701398 100644 --- a/modules/plugins/completion/blink-cmp/blink-cmp.nix +++ b/modules/plugins/completion/blink-cmp/blink-cmp.nix @@ -61,7 +61,11 @@ in { completion = { documentation = { - auto_show = mkBool true "Show documentation whenever an item is selected"; + auto_show = mkOption { + type = either bool luaInline; + default = true; + description = "Show documentation whenever an item is selected. Can also be a function."; + }; auto_show_delay_ms = mkOption { type = int; default = 200; @@ -70,12 +74,13 @@ in { }; menu.auto_show = mkOption { - type = bool; + type = either bool luaInline; default = true; description = '' Manages the appearance of the completion menu. You may prevent the menu - from automatically showing by this option to `false` and manually showing - it with the show keymap command. + from automatically showing by setting this to `false` and manually showing + it with the show keymap command. For more control you can also use a `luaInline` + expression with mkLuaInline. ''; }; };