From 00e8c77b23d6f9bfadc1a8cb561ab2d6bae35cf5 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 27 Jun 2023 20:34:17 +0200 Subject: [PATCH] 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. --- core/plugins.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 = {'': [''], '': ['']} +" 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.