From d3709747adfc0c12c290e44591297bf9fb59a800 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Sat, 11 Jan 2025 12:28:41 -0500 Subject: [PATCH] docs: add todo about simplifying cmdline completions --- lua/blink/cmp/sources/cmdline/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/blink/cmp/sources/cmdline/init.lua b/lua/blink/cmp/sources/cmdline/init.lua index e85181f4..9ad9d5d9 100644 --- a/lua/blink/cmp/sources/cmdline/init.lua +++ b/lua/blink/cmp/sources/cmdline/init.lua @@ -44,6 +44,8 @@ function cmdline:get_completions(context, callback) local completion_func = completion_args[2] -- Handle custom completions explicitly, since otherwise they won't work in input() mode (getcmdtype() == '@') + -- TODO: however, we cannot handle s: and completions. is there a better solution here where we can get + -- completions in input() mode without calling ourselves? if vim.startswith(completion_type, 'custom') and not vim.startswith(completion_func, 's:')