nvim: after/plugin/fzf: Use tmux popups when in tmux
This commit is contained in:
parent
7ad8a95d21
commit
1325929554
1 changed files with 6 additions and 1 deletions
|
@ -32,7 +32,12 @@ let g:fzf_action = {
|
|||
\ }
|
||||
|
||||
let $FZF_DEFAULT_OPTS = '--layout=reverse --bind "Ctrl-d:half-page-down,Ctrl-u:half-page-up,Ctrl-n:preview-down,Ctrl-p:preview-up,Ctrl-f:preview-page-down,Ctrl-b:preview-page-up,ctrl-a:select-all+accept"'
|
||||
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 }, }
|
||||
|
||||
if exists('$TMUX')
|
||||
let g:fzf_layout = { 'tmux': '-p90%,90%' }
|
||||
else
|
||||
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.9 }, }
|
||||
endif
|
||||
|
||||
nnoremap <Leader>b :Buffers<CR>
|
||||
nnoremap <Leader>B :History<CR>
|
||||
|
|
Loading…
Reference in a new issue