From 955c42ca793aa3aef56719febf10f061a22021a9 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 16 Apr 2022 11:09:47 +0800 Subject: [PATCH] fix(denite): do not switch denite buffer when press `` --- config/plugins/denite.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/plugins/denite.vim b/config/plugins/denite.vim index d85e379be..28c04cc65 100644 --- a/config/plugins/denite.vim +++ b/config/plugins/denite.vim @@ -194,6 +194,7 @@ function! s:denite_filter_my_settings() abort inoremap denite_prev() inoremap denite_next() inoremap denite_prev() + imap denite_backspace() else inoremap \ p:call cursor(line('.')+1,0)pA @@ -235,6 +236,13 @@ function! s:denite_prev() abort return '' endfunction +function! s:denite_backspace() abort + if col('.') ==# 1 + return '' + else + return "\(denite_filter_backspace)" + endif +endfunction function! s:delete_action() abort if SpaceVim#layers#core#statusline#denite_status("sources") =~# '^buffer'