Skip to content

Commit

Permalink
Remove completor, update dependencies
Browse files Browse the repository at this point in the history
- completor.vim is bugged, so remove it and just use omnifunc for tab
completion
- Update fzf#contrib#complete to handle more different types of output
from omnifunc

Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Jun 27, 2017
1 parent 4711451 commit fbe4fd1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 18 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@
[submodule "zsh/.zsh/bundle/alias-tips"]
path = zsh/.zsh/bundle/alias-tips
url = https://github.com/djui/alias-tips
[submodule "vim/.vim/bundle/completor.vim"]
path = vim/.vim/bundle/completor.vim
url = https://github.com/maralla/completor.vim
[submodule "tmux/.tmux/bundle/tmux-sessionist"]
path = tmux/.tmux/bundle/tmux-sessionist
url = https://github.com/tmux-plugins/tmux-sessionist
Expand Down
2 changes: 1 addition & 1 deletion tmux/.tmux/bundle/vim-tmux-navigator
1 change: 0 additions & 1 deletion vim/.vim/bundle/completor.vim
Submodule completor.vim deleted from 089453
8 changes: 5 additions & 3 deletions vim/.vim/bundle/fzf-contrib/autoload/fzf/contrib.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ function! fzf#contrib#completefunc(findstart, base) abort

let words = type(results) == type({}) && has_key(results, 'words')
\ ? len(results.words) && type(results.words[0]) == type({})
\ ? map(results.words, 'v:val.word . "\t" . v:val.menu')
\ : results.words
\ : results
\ ? map(results.words, 'v:val.word . "\t" . v:val.menu')
\ : results.words
\ : len(results) && type(results[0]) == type({})
\ ? map(results, 'v:val.word . "\t" . v:val.menu')
\ : results

let results = len(words) > 1
\ ? fzf#run({
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/bundle/ultisnips
2 changes: 1 addition & 1 deletion vim/.vim/bundle/vim-dirvish
2 changes: 1 addition & 1 deletion vim/.vim/bundle/vim-javacomplete2
2 changes: 1 addition & 1 deletion vim/.vim/bundle/vim-snippets
5 changes: 0 additions & 5 deletions vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ command! -bar Session :call Session()
" Ultisnips
let g:UltiSnipsExpandTrigger = '<s-tab>'

" Completor
let g:completor_auto_trigger = 0
let g:completor_min_chars = 1

" VimWiki
let g:vimwiki_list = [{'path': '~/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}]
let g:vimwiki_global_ext=0
Expand Down Expand Up @@ -299,7 +295,6 @@ nmap <silent> <leader>mT :TestSuite<CR>
nmap <silent> <leader>mtt :TestNearest<CR>
" FZF
let g:fzf#contrib#completefunc = 'completor#completefunc'
nmap <leader>/ :Grep<cr>
nmap <leader>T :Tags<cr>
nmap <leader>t :BTags<cr>
Expand Down
2 changes: 1 addition & 1 deletion zsh/.fzf

0 comments on commit fbe4fd1

Please sign in to comment.