diff options
author | Tom Picton <tom@tompicton.com> | 2021-04-17 04:48:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 20:48:10 +0900 |
commit | 8b0e1f941a419258b0877d9a5f71373d76472043 (patch) | |
tree | a95b57ee3888f119c381b21510f13d25002db165 /README-VIM.md | |
parent | c7c5e7670a9bccf5c7ba2b8dd3fa73135be2b734 (diff) |
[vim] Support relative-to-window positioning of popup (#2443)
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'README-VIM.md')
-rw-r--r-- | README-VIM.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/README-VIM.md b/README-VIM.md index b934c232..b54c4fae 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -127,9 +127,15 @@ let g:fzf_action = { \ 'ctrl-v': 'vsplit' } " Default fzf layout -" - Popup window +" - Popup window (center of the screen) let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } +" - Popup window (center of the current window) +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true } } + +" - Popup window (anchored to the bottom of the current window) +let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6, 'relative': v:true, 'yoffset': 1.0 } } + " - down / up / left / right let g:fzf_layout = { 'down': '40%' } @@ -302,6 +308,7 @@ following options are allowed: - Optional: - `yoffset` [float default 0.5 range [0 ~ 1]] - `xoffset` [float default 0.5 range [0 ~ 1]] + - `relative` [boolean default v:false] - `border` [string default `rounded`]: Border style - `rounded` / `sharp` / `horizontal` / `vertical` / `top` / `bottom` / `left` / `right` / `no[ne]` @@ -410,6 +417,7 @@ The latest versions of Vim and Neovim include builtin terminal emulator " Optional: " - xoffset [float default 0.5 range [0 ~ 1]] " - yoffset [float default 0.5 range [0 ~ 1]] +" - relative [boolean default v:false] " - border [string default 'rounded']: Border style " - 'rounded' / 'sharp' / 'horizontal' / 'vertical' / 'top' / 'bottom' / 'left' / 'right' let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } |