1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update LeaderF settings

This commit is contained in:
jdhao 2021-11-01 22:16:49 +08:00
parent 5ae2c7d1e0
commit 51c19507b7

View File

@ -71,8 +71,14 @@ endif
let g:Lf_DefaultMode = 'NameOnly' let g:Lf_DefaultMode = 'NameOnly'
" Popup window settings " Popup window settings
let g:Lf_PopupWidth = 0.5 let w = float2nr(&columns * 0.8)
let g:Lf_PopupPosition = [0, &columns/4] 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 " Do not use version control tool to list files under a directory since
" submodules are not searched by default. " submodules are not searched by default.