diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:30:52 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2024-11-21 13:30:52 +0530 |
commit | 5c916d69d457101326803eb076a746060e3618cf (patch) | |
tree | d6fce3256eede1c1bf78fb6a1be75b9cc4b84cee /.config/nvim/other/fzf.vim |
Moved from github
Diffstat (limited to '.config/nvim/other/fzf.vim')
-rw-r--r-- | .config/nvim/other/fzf.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/other/fzf.vim b/.config/nvim/other/fzf.vim new file mode 100644 index 0000000..32cb18b --- /dev/null +++ b/.config/nvim/other/fzf.vim @@ -0,0 +1,19 @@ +" --> Fzf +let g:fzf_layout = { 'window': { 'width': 1, 'height': 1 } } +command! -bang -nargs=? -complete=dir Files + \ call fzf#vim#files(<q-args>, {'options': ['--info=inline', '--preview', 'preview {}']}, <bang>0) + +" Mapping selecting mappings +nmap <leader><tab> <plug>(fzf-maps-n) +xmap <leader><tab> <plug>(fzf-maps-x) +omap <leader><tab> <plug>(fzf-maps-o) + +" Insert mode completion +imap <c-x><c-k> <plug>(fzf-complete-word) +imap <c-x><c-f> <plug>(fzf-complete-path) +imap <c-x><c-l> <plug>(fzf-complete-line) + +" Fzf keybindings +nnoremap <leader>ff :Files<CR> +nnoremap <leader>. :Files %:p:h<CR> + |