Skip to content

Commit

Permalink
fix command completion for condition loading plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
eph authored and eph committed Jul 17, 2024
1 parent b394bc1 commit c6ea98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/pckr/loader/cmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ return function(cmd)
end, {
bang = true,
nargs = '*',
complete = function()
complete = function(ArgLead, CmdLine, CursorPos)
vim.api.nvim_del_user_command(cmd)
loader()
return vim.fn.getcompletion(cmd .. ' ', 'cmdline')
return vim.fn.getcompletion(cmd .. ' ' .. ArgLead, 'cmdline')
end,
})
end
Expand Down

0 comments on commit c6ea98c

Please sign in to comment.