From 348d868d9d610f8b4a45829cd5ace91c9443c917 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 26 Mar 2024 23:49:51 +0800 Subject: [PATCH] perf(telescope): remove `jk` for telescope --- autoload/SpaceVim/layers/telescope.vim | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/autoload/SpaceVim/layers/telescope.vim b/autoload/SpaceVim/layers/telescope.vim index 5d15ae4ba..d497b3668 100644 --- a/autoload/SpaceVim/layers/telescope.vim +++ b/autoload/SpaceVim/layers/telescope.vim @@ -179,13 +179,14 @@ function! SpaceVim#layers#telescope#config() abort call s:defind_fuzzy_finder() " this autocmd should only be called when using deoplete - if g:spacevim_autocomplete_method == 'deoplete' - augroup spacevim_telescope_layer - autocmd! + augroup spacevim_telescope_layer + autocmd! + if g:spacevim_autocomplete_method == 'deoplete' " https://github.com/nvim-telescope/telescope.nvim/issues/161 autocmd FileType TelescopePrompt call deoplete#custom#buffer_option('auto_complete', v:false) - augroup END - endif + endif + autocmd FileType TelescopePrompt iunmap jk + augroup END endfunction function! s:get_help_with_cursor_symbol() abort