Skip to content

Commit

Permalink
fix: help detection triggering on first arg
Browse files Browse the repository at this point in the history
Closes #1050
  • Loading branch information
Saghen committed Jan 22, 2025
1 parent 649c5f7 commit 0632884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/sources/cmdline/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function cmdline:get_completions(context, callback)
.empty()
:map(function()
-- Special case for help where we read all the tags ourselves
if vim.tbl_contains(constants.help_commands, cmd) then
if vim.tbl_contains(constants.help_commands, cmd) and arg_number > 1 then
return require('blink.cmp.sources.cmdline.help').get_completions(current_arg_prefix)
end

Expand Down

0 comments on commit 0632884

Please sign in to comment.