From 3d9494a112dddbe6b3351f1bb458c98ba126a18c Mon Sep 17 00:00:00 2001 From: alps2006 Date: Mon, 6 Nov 2023 21:50:53 +0800 Subject: [PATCH 1/2] feat(fzf.vim): Adding option `g:fzf_fullscreen_layout` --- plugin/fzf.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index dd109906..2dfd3dbf 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -403,6 +403,9 @@ function! fzf#wrap(...) call remove(opts, key) endif endfor + if exists('g:fzf_fullscreen_layout') + let opts = extend(opts, s:validate_layout(get(g:, 'fzf_fullscreen_layout', {}))) + endif elseif !s:has_any(opts, s:layout_keys) if !exists('g:fzf_layout') && exists('g:fzf_height') let opts.down = g:fzf_height From d1adf973bb93dfea1ecc17cd034463e640a87d67 Mon Sep 17 00:00:00 2001 From: alps2006 Date: Tue, 7 Nov 2023 12:37:05 +0800 Subject: [PATCH 2/2] fix(fzf.vim): fix the logic according with `use_height` above --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 2dfd3dbf..88d72934 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -526,7 +526,7 @@ try let has_vim8_term = has('terminal') && has('patch-8.0.995') let has_nvim_term = has('nvim-0.2.1') || has('nvim') && !s:is_win let use_term = has_nvim_term || - \ has_vim8_term && !has('win32unix') && (has('gui_running') || s:is_win || s:present(dict, 'down', 'up', 'left', 'right', 'window')) + \ has_vim8_term && !has('win32unix') && (has('gui_running') || s:is_win || s:present(dict, 'up', 'left', 'right', 'window')) let use_tmux = (has_key(dict, 'tmux') || (!use_height && !use_term || prefer_tmux) && !has('win32unix') && s:splittable(dict)) && s:tmux_enabled() if prefer_tmux && use_tmux let use_height = 0