diff options
| author | Raphael <glepnir@gopherhub.org> | 2021-03-02 16:34:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-02 16:34:29 +0800 |
| commit | 677b44d3a08d69c7fd7d9a7dcfe897b7839fd976 (patch) | |
| tree | 04a5c4803c52a780c60d27725d444650789ae2e5 /lua | |
| parent | 678494e503d3c717df8295f55a6f3c7d3309b7fa (diff) | |
Enhance Telescope command (#588)
* Enhance Telescope command close #581
* bug fix
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/command.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/telescope/command.lua b/lua/telescope/command.lua index d28f540..3034164 100644 --- a/lua/telescope/command.lua +++ b/lua/telescope/command.lua @@ -131,6 +131,11 @@ end function command.load_command(cmd,...) local args = {...} + if cmd == nil then + run_command({cmd = 'builtin'}) + return + end + local user_opts = {} user_opts['cmd'] = cmd user_opts.opts = {} |
