aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-11-01 22:16:49 +0800
committerjdhao <jdhao@hotmail.com>2021-11-01 22:16:49 +0800
commit51c19507b74219082e261338eca0232df40283aa (patch)
treed093ea518f92aaf45c5ab2aab5a274d4b4af4e2d /core
parent5ae2c7d1e067074aa1ffe76e80e7090196f3bfe8 (diff)
update LeaderF settings
Diffstat (limited to 'core')
-rw-r--r--core/plugins.vim10
1 files 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.