Skip to content

Commit

Permalink
docs: add todo about simplifying cmdline completions
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Jan 11, 2025
1 parent aacb98a commit d370974
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/blink/cmp/sources/cmdline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sid> 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:')
Expand Down

0 comments on commit d370974

Please sign in to comment.