summaryrefslogtreecommitdiff
path: root/plugin/telescope.vim
diff options
context:
space:
mode:
authortamago324 <tamago_pad@yahoo.co.jp>2020-11-24 01:35:07 +0900
committerGitHub <noreply@github.com>2020-11-23 11:35:07 -0500
commit823f881998aa6891bb5003be53886387fcc08945 (patch)
tree0ecc5244220e5f3ba10db4ea5b7a1e7dce143f85 /plugin/telescope.vim
parent863328a96d81d4b93bcfaa0038d429ea24880b0b (diff)
Filter the completion of the command (#279)
Diffstat (limited to 'plugin/telescope.vim')
-rw-r--r--plugin/telescope.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/telescope.vim b/plugin/telescope.vim
index ae1af2d..4bf165d 100644
--- a/plugin/telescope.vim
+++ b/plugin/telescope.vim
@@ -30,7 +30,7 @@ cnoremap <silent> <Plug>(TelescopeFuzzyCommandSearch) <C-\>e
" Telescope builtin lists
function! s:telescope_complete(...)
- return luaeval('vim.tbl_keys(require("telescope.builtin"))')
+ return join(luaeval('vim.tbl_keys(require("telescope.builtin"))'), "\n")
endfunction
" TODO: If the lua datatype contains complex type,It will cause convert to
@@ -55,4 +55,4 @@ function! s:load_command(builtin,...) abort
endfunction
" Telescope Commands with complete
-command! -nargs=+ -complete=customlist,s:telescope_complete Telescope call s:load_command(<f-args>)
+command! -nargs=+ -complete=custom,s:telescope_complete Telescope call s:load_command(<f-args>)