Compare commits
No commits in common. "598c5ad4729e6b6b40fd8f188becc66979815232" and "01d7caa2c38c23361381da276a44786e58dfa172" have entirely different histories.
598c5ad472
...
01d7caa2c3
1 changed files with 8 additions and 6 deletions
|
@ -32,12 +32,14 @@ endfunction
|
||||||
" Looks
|
" Looks
|
||||||
"let $FZF_DEFAULT_OPTS=' --color=dark --color=fg:15,bg:-1,hl:1,fg+:#ffffff,bg+:0,hl+:1 --color=info:0,prompt:0,pointer:12,marker:4,spinner:11,header:-1 --layout=reverse --margin=1,4'
|
"let $FZF_DEFAULT_OPTS=' --color=dark --color=fg:15,bg:-1,hl:1,fg+:#ffffff,bg+:0,hl+:1 --color=info:0,prompt:0,pointer:12,marker:4,spinner:11,header:-1 --layout=reverse --margin=1,4'
|
||||||
|
|
||||||
" ripgrep custom settings
|
|
||||||
command! -bang -nargs=* Rg
|
|
||||||
\ call fzf#vim#grep('rg --column --line-number --no-heading --color=always --smart-case '
|
|
||||||
\ . (len(<q-args>) > 0 ? <q-args> : '""'), 0,
|
|
||||||
\ fzf#vim#with_preview({'options': ['--delimiter=:', '--nth=2..', '--layout=reverse', '--info=inline']}), <bang>0)
|
|
||||||
|
|
||||||
" Keybinds
|
" Keybinds
|
||||||
nmap <C-f> :Files<CR>
|
nmap <C-f> :Files<CR>
|
||||||
nmap <C-g> :Rg<CR>
|
nmap <C-g> :Rg<CR>
|
||||||
|
|
||||||
|
" Ripgrep command customization
|
||||||
|
command! -bang -nargs=* Rg
|
||||||
|
\ call fzf#vim#grep(
|
||||||
|
\ 'rg --column --hidden --line-number --no-heading --color=always --smart-case '.shellescape(<q-args>), 1,
|
||||||
|
\ <bang>0 ? fzf#vim#with_preview('up:60%')
|
||||||
|
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
|
||||||
|
\ <bang>0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue