[vim] Add support for xoffset and yoffset options for popup

Close https://github.com/junegunn/fzf.vim/issues/942
This commit is contained in:
Junegunn Choi
2020-02-06 10:38:37 +09:00
parent 0896036266
commit a859aa72ee
3 changed files with 27 additions and 13 deletions

View File

@@ -198,9 +198,11 @@ When `window` entry is a dictionary, fzf will start in a popup window. The
following options are allowed:
- Required:
- `width` [float]
- `height` [float]
- `width` [float range [0 ~ 1]]
- `height` [float range [0 ~ 1]]
- Optional:
- `yoffset` [float default 0.5 range [0 ~ 1]]
- `xoffset` [float default 0.5 range [0 ~ 1]]
- `highlight` [string default `'Comment'`]: Highlight group for border
- `rounded` [boolean default `v:true`]: Use rounded border
@@ -291,10 +293,12 @@ The latest versions of Vim and Neovim include builtin terminal emulator
```vim
" Required:
" - width [float]
" - height [float]
" - width [float range [0 ~ 1]]
" - height [float range [0 ~ 1]]
"
" Optional:
" - xoffset [float default 0.0 range [0 ~ 1]]
" - yoffset [float default 0.0 range [0 ~ 1]]
" - highlight [string default 'Comment']: Highlight group for border
" - rounded [boolean default v:true]: Use rounded border
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }