nvim: after/plugin: fzf/fzf-preview: Support searching visual selection

This commit is contained in:
Sanchayan Maity 2021-12-25 11:44:55 +05:30
parent 5abf204ae6
commit 6b9f354f78
2 changed files with 2 additions and 0 deletions

View File

@ -8,4 +8,5 @@ remap('n', '<Leader>fT', ':FZFTags<SPACE>', { noremap = true })
remap('n', '<Leader>fq', ':cclose<CR>:FZFQuickFix<CR>', { noremap = true })
remap('n', '<Leader>fQ', ':lclose<CR>:FZFLocList<CR>', { noremap = true })
remap('n', '<Leader>fS', ':<C-u>FZFRg <C-r><C-w><CR>', { noremap = true })
remap('x', '<Leader>fS', '"zy<Esc>:FZFRg <C-R>z<CR>', { noremap = true })
remap('n', '<Leader>ft', ':<C-u>FZFTags <C-r><C-w><CR>', { noremap = true })

View File

@ -49,6 +49,7 @@ nnoremap <Leader>fo :Locate<CR>
nnoremap <Leader>fk :Maps<CR>
nnoremap <Leader>f/ :Rg<CR>
nnoremap <Leader>fs :<C-u>Rg <C-r><C-w><CR>
xnoremap <Leader>fs "zy<Esc>:Rg <C-R>z<CR>
nnoremap <Leader>fw :BD<CR>
imap <C-x><C-w> <Plug>(fzf-complete-word)