Commit c8f563e

mo khan <mo@mokhan.ca>
2021-07-30 21:05:11
connect fzf to some of the omnicompletion functionality
1 parent deab08d
Changed files (1)
vimrc
@@ -99,6 +99,7 @@ runtime macros/matchit.vim
 color happy_hacking
 syntax on
 filetype plugin indent on
+set omnifunc=syntaxcomplete#Complete
 
 " }}}}
 
@@ -159,11 +160,19 @@ vnoremap <space> zf
 vnoremap <tab> %
 
 map <localleader>/ <plug>NERDCommenterToggle
-imap <c-x><c-k> <plug>(fzf-complete-word)
-imap <c-x><c-l> <plug>(fzf-complete-line)
+
+"imap <c-space> <plug>(fzf-maps-i)
 nmap <leader><tab> <plug>(fzf-maps-n)
 omap <leader><tab> <plug>(fzf-maps-o)
 xmap <leader><tab> <plug>(fzf-maps-x)
+
+"inoremap <expr> <c-x><c-]> fzf#vim#complete("cat tags")
+imap <c-x><c-f> <plug>(fzf-complete-path)
+imap <c-x><c-j> <plug>(fzf-complete-file-ag)
+imap <c-x><c-k> <plug>(fzf-complete-word)
+imap <c-x><c-l> <plug>(fzf-complete-line)
+imap <c-x><c-n> <plug>(fzf-complete-buffer-line)
+
 " }}}}
 
 "" Abbreviations {{{{