37 lines
1.1 KiB
Django/Jinja
37 lines
1.1 KiB
Django/Jinja
{# Fuzzy matching for all kind of stuff #}
|
|
{{ add_source('junegunn/fzf', {'do': './install --bin'}) }}
|
|
{{ add_source('junegunn/fzf.vim') -}}
|
|
let g:fzf_layout = { 'down': '~40%' }
|
|
let g:fzf_colors =
|
|
\ { 'fg': ['fg', 'Normal'],
|
|
\ 'bg': ['bg', 'Normal'],
|
|
\ 'hl': ['fg', 'Comment'],
|
|
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
|
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
|
\ 'hl+': ['fg', 'Statement'],
|
|
\ 'info': ['fg', 'PreProc'],
|
|
\ 'border': ['fg', 'Ignore'],
|
|
\ 'prompt': ['fg', 'Conditional'],
|
|
\ 'pointer': ['fg', 'Exception'],
|
|
\ 'marker': ['fg', 'Keyword'],
|
|
\ 'spinner': ['fg', 'Label'],
|
|
\ 'header': ['fg', 'Comment'] }
|
|
|
|
let g:fzf_command_prefix = 'Fzf'
|
|
nmap gF :FzfFiles<CR>
|
|
nmap gf :FzfGFiles<CR>
|
|
nmap gb :FzfBuffers<CR>
|
|
nmap gL :FzfLines<CR>
|
|
nmap gl :FzfBLines<CR>
|
|
nmap gT :FzfTags<CR>
|
|
nmap gt :FzfBTags<CR>
|
|
nmap gm :FzfMarks<CR>
|
|
nmap gw :FzfWindows<CR>
|
|
nmap gh :FzfHistory<CR>
|
|
nmap gH :FzfHistory:<CR>
|
|
nmap gS :FzfHistory/<CR>
|
|
nmap gs :FzfSnippets<CR>
|
|
|
|
" TODO `gd` → go to tag matching selected word, or show a list with that
|
|
" of tags pre-filtered with that word
|