From 51c19507b74219082e261338eca0232df40283aa Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 1 Nov 2021 22:16:49 +0800 Subject: [PATCH] update LeaderF settings --- core/plugins.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/core/plugins.vim b/core/plugins.vim index d614830..dc2e6c7 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -71,8 +71,14 @@ endif let g:Lf_DefaultMode = 'NameOnly' " Popup window settings -let g:Lf_PopupWidth = 0.5 -let g:Lf_PopupPosition = [0, &columns/4] +let w = float2nr(&columns * 0.8) +if w > 140 + let g:Lf_PopupWidth = 140 +else + let g:Lf_PopupWidth = w +endif + +let g:Lf_PopupPosition = [0, float2nr((&columns - g:Lf_PopupWidth)/2)] " Do not use version control tool to list files under a directory since " submodules are not searched by default.