From 5c916d69d457101326803eb076a746060e3618cf Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 13:30:52 +0530 Subject: Moved from github --- .config/nvim/other/fzf.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .config/nvim/other/fzf.vim (limited to '.config/nvim/other/fzf.vim') 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(, {'options': ['--info=inline', '--preview', 'preview {}']}, 0) + +" Mapping selecting mappings +nmap (fzf-maps-n) +xmap (fzf-maps-x) +omap (fzf-maps-o) + +" Insert mode completion +imap (fzf-complete-word) +imap (fzf-complete-path) +imap (fzf-complete-line) + +" Fzf keybindings +nnoremap ff :Files +nnoremap . :Files %:p:h + -- cgit v1.2.3