summaryrefslogtreecommitdiffstats
path: root/README-VIM.md
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-02-06 10:38:37 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-02-06 10:40:57 +0900
commita859aa72ee0ab6e7ae948752906483e468a501ee (patch)
tree093eaf2b79f26138d31bb968cbe482997609556b /README-VIM.md
parent0896036266dc951ac03c451f1097171a996eb412 (diff)
[vim] Add support for xoffset and yoffset options for popup
Close https://github.com/junegunn/fzf.vim/issues/942
Diffstat (limited to 'README-VIM.md')
-rw-r--r--README-VIM.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/README-VIM.md b/README-VIM.md
index 103b8e52..88a9308f 100644
--- a/README-VIM.md
+++ b/README-VIM.md
@@ -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 } }