summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-10 17:43:42 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-18 17:08:36 +0900
commit685fb71d8953189e36375b822c8d8e1293736128 (patch)
tree3764111ff241f79c7fdc3c55324aec8c88daa3ec /doc
parent83b603390683d49ff75b72d142b4dba4b5186d73 (diff)
downloadfzf-685fb71d8953189e36375b822c8d8e1293736128.tar.gz
[vim] Use native --tmux option instead of fzf-tmux when possible
Diffstat (limited to 'doc')
-rw-r--r--doc/fzf.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/fzf.txt b/doc/fzf.txt
index cf8c6af3..f946184f 100644
--- a/doc/fzf.txt
+++ b/doc/fzf.txt
@@ -311,7 +311,7 @@ The following table summarizes the available options.
`options` | string/list | Options to fzf
`dir` | string | Working directory
`up` / `down` / `left` / `right` | number/string | (Layout) Window position and size (e.g. `20` , `50%` )
- `tmux` | string | (Layout) fzf-tmux options (e.g. `-p90%,60%` )
+ `tmux` | string | (Layout) `--tmux` options (e.g. `90%,70%` )
`window` (Vim 8 / Neovim) | string | (Layout) Command to open fzf window (e.g. `vertical aboveleft 30new` )
`window` (Vim 8 / Neovim) | dict | (Layout) Popup window settings (e.g. `{'width': 0.9, 'height': 0.6}` )
---------------------------+---------------+----------------------------------------------------------------------
@@ -469,11 +469,12 @@ in Neovim.
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
<
Alternatively, you can make fzf open in a tmux popup window (requires tmux 3.2
-or above) by putting fzf-tmux options in `tmux` key.
+or above) by putting `--tmux` options in `tmux` key.
>
- " See `man fzf-tmux` for available options
+ " See `--tmux` option in `man fzf` for available options
+ " [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]
if exists('$TMUX')
- let g:fzf_layout = { 'tmux': '-p90%,60%' }
+ let g:fzf_layout = { 'tmux': '90%,70%' }
else
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
endif