From 823f881998aa6891bb5003be53886387fcc08945 Mon Sep 17 00:00:00 2001 From: tamago324 Date: Tue, 24 Nov 2020 01:35:07 +0900 Subject: [PATCH] Filter the completion of the command (#279) --- plugin/telescope.vim | 4 ++-- 1 file 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 (TelescopeFuzzyCommandSearch) 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() +command! -nargs=+ -complete=custom,s:telescope_complete Telescope call s:load_command()