From b77413ff8f59f380612074f0c9bd49093d8db695 Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 19 Jan 2025 13:52:52 +0100 Subject: Squashed 'mut/neovim/pack/plugins/start/blink.cmp/' content from commit 1cc3b1a git-subtree-dir: mut/neovim/pack/plugins/start/blink.cmp git-subtree-split: 1cc3b1a908fbcfd15451c4772759549724f38524 --- lua/blink/cmp/config/completion/ghost_text.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/blink/cmp/config/completion/ghost_text.lua (limited to 'lua/blink/cmp/config/completion/ghost_text.lua') diff --git a/lua/blink/cmp/config/completion/ghost_text.lua b/lua/blink/cmp/config/completion/ghost_text.lua new file mode 100644 index 0000000..47fb2cd --- /dev/null +++ b/lua/blink/cmp/config/completion/ghost_text.lua @@ -0,0 +1,19 @@ +--- Displays a preview of the selected item on the current line +--- @class (exact) blink.cmp.CompletionGhostTextConfig +--- @field enabled boolean + +local validate = require('blink.cmp.config.utils').validate +local ghost_text = { + --- @type blink.cmp.CompletionGhostTextConfig + default = { + enabled = false, + }, +} + +function ghost_text.validate(config) + validate('completion.ghost_text', { + enabled = { config.enabled, 'boolean' }, + }, config) +end + +return ghost_text -- cgit v1.2.3