mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-24 18:52:22 +08:00
fix(telescope): fix deoplete autocmd
This commit is contained in:
parent
74c93c6c6a
commit
9ee8606e80
@ -178,11 +178,14 @@ function! SpaceVim#layers#telescope#config() abort
|
||||
let g:_spacevim_mappings.f = {'name' : '+Fuzzy Finder'}
|
||||
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!
|
||||
" https://github.com/nvim-telescope/telescope.nvim/issues/161
|
||||
autocmd FileType TelescopePrompt call deoplete#custom#buffer_option('auto_complete', v:false)
|
||||
augroup END
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:get_help_with_cursor_symbol() abort
|
||||
|
Loading…
x
Reference in New Issue
Block a user