diff options
-rw-r--r-- | .mrconfig | 4 | ||||
-rw-r--r-- | tmux/.tmux.conf | 13 | ||||
-rw-r--r-- | vim/.vimrc | 22 |
3 files changed, 31 insertions, 8 deletions
@@ -8,7 +8,7 @@ checkout = git clone 'git@github.com:urbainvaes/vim-remembrall.git' update = git pull origin master push = git push origin master -[$HOME/dotfiles/plugins/vim-wintab] -checkout = git clone 'git@github.com:urbainvaes/vim-wintab.git' +[$HOME/dotfiles/plugins/vim-tmux-pilot] +checkout = git clone 'git@github.com:urbainvaes/vim-tmux-pilot.git' update = git pull origin master push = git saveandsync diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 63a3799..c16febc 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -27,15 +27,16 @@ set-hook -g session-created "if-shell '[ -n \""'$SSH_CONNECTION'"\" ]' 'set stat set-hook -g client-attached "if-shell '[ -n \""'$SSH_CONNECTION'"\" ]' 'set status-bg \"#aa4444\"' 'set status-bg \"green\"'" -# PILOT_KEY_H=M-h -# PILOT_KEY_J=M-j -# PILOT_KEY_K=M-k -# PILOT_KEY_L=M-l -# PILOT_KEY_P=M-backslash +# PILOT_KEY_H='M-h' +# PILOT_KEY_J='M-j' +# PILOT_KEY_K='M-k' +# PILOT_KEY_L='M-l' +# PILOT_KEY_P='M-\' + PILOT_IGNORE= PILOT_BOUNDARY=ignore PILOT_MODE=wintab -PILOT_ROOT=$HOME/dotfiles/plugins/vim-wintab +PILOT_ROOT=$HOME/dotfiles/plugins/vim-tmux-pilot source-file $PILOT_ROOT/pilot.tmux # Bind for clear-screen @@ -553,3 +553,25 @@ endif "" Experimental {{{1 set wildcharm=<C-z> nnoremap ,e :e **/*<C-z><S-Tab> + +let $FZF_DEFAULT_OPTS='--layout=reverse' +let g:fzf_layout = { 'window': 'call FloatingFZF()' } + +function! FloatingFZF() + let buf = nvim_create_buf(v:false, v:true) + call setbufvar(buf, '&signcolumn', 'no') + + let height = &lines - 10 + let width = float2nr(&columns - (&columns * 2 / 10)) + let col = float2nr((&columns - width) / 2) + + let opts = { + \ 'relative': 'editor', + \ 'row': 5, + \ 'col': col, + \ 'width': width, + \ 'height': height + \ } + + call nvim_open_win(buf, v:true, opts) +endfunction |