nvim: after/plugin/fzf: Use tmux popups when in tmux

This commit is contained in:
Sanchayan Maity 2022-03-24 09:36:04 +05:30
parent 7ad8a95d21
commit 1325929554
1 changed files with 6 additions and 1 deletions

View File

@ -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>