aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2023-06-27 20:34:17 +0200
committerjdhao <jdhao@hotmail.com>2023-06-27 20:39:26 +0200
commit00e8c77b23d6f9bfadc1a8cb561ab2d6bae35cf5 (patch)
tree90934073ae46ebeb271711a91d6b23ae504d15e8
parent7bb3ccc275e3b9e8e26b8f1e5f27c221be9d7258 (diff)
Fix LeaderF bug
It will add files to buffer list even if we have not confirmed the selection. This behavior is really annoying. See also https://github.com/Yggdroot/LeaderF/commit/27bd938a422fc6fcfc453fa88fe2ad453a012074.
-rw-r--r--core/plugins.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/plugins.vim b/core/plugins.vim
index 6125514..16468ee 100644
--- a/core/plugins.vim
+++ b/core/plugins.vim
@@ -109,6 +109,20 @@ let g:Lf_PopupColorscheme = 'gruvbox_material'
" items.
let g:Lf_CommandMap = {'<C-J>': ['<C-N>'], '<C-K>': ['<C-P>']}
+" do not preview results, it will add the file to buffer list
+let g:Lf_PreviewResult = {
+ \ 'File': 0,
+ \ 'Buffer': 0,
+ \ 'Mru': 0,
+ \ 'Tag': 0,
+ \ 'BufTag': 1,
+ \ 'Function': 1,
+ \ 'Line': 0,
+ \ 'Colorscheme': 0,
+ \ 'Rg': 0,
+ \ 'Gtags': 0
+ \}
+
""""""""""""""""""""""""""""open-browser.vim settings"""""""""""""""""""
if g:is_win || g:is_mac
" Disable netrw's gx mapping.