Skip to content

Commit

Permalink
Replace Deoplete with Completor, cleanup vimrc
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Apr 1, 2017
1 parent 2bdecfb commit 34aec9d
Show file tree
Hide file tree
Showing 21 changed files with 54 additions and 65 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@
[submodule "vim/.vim/bundle/vim-javacomplete2"]
path = vim/.vim/bundle/vim-javacomplete2
url = https://github.com/artur-shaik/vim-javacomplete2
[submodule "vim/.vim/bundle/deoplete.nvim"]
path = vim/.vim/bundle/deoplete.nvim
url = https://github.com/Shougo/deoplete.nvim
[submodule "vim/.vim/bundle/yang.vim"]
path = vim/.vim/bundle/yang.vim
url = https://github.com/nathanalderson/yang.vim
Expand Down Expand Up @@ -119,3 +116,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
8 changes: 1 addition & 7 deletions irssi/.irssi/config
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,4 @@ statusbar = {
};
};

keyboard = (
{
key = "^R";
id = "command";
data = "history_search ";
}
);
keyboard = ( { key = "^R"; id = "command"; data = "history_search "; } );
1 change: 1 addition & 0 deletions neovim/.config/nvim/ftplugin
2 changes: 1 addition & 1 deletion qutebrowser/.config/qutebrowser/qutebrowser.conf
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ cache-size =
# download button in the pdf.js viewer.
# Valid values: true, false
# Default: false
allow-images = true
allow-images = false
allow-javascript = true
allow-plugins = true
webgl = true
Expand Down
1 change: 1 addition & 0 deletions vim/.vim/bundle/completor.vim
Submodule completor.vim added at 6350a3
1 change: 0 additions & 1 deletion vim/.vim/bundle/deoplete.nvim
Submodule deoplete.nvim deleted from d24774
2 changes: 1 addition & 1 deletion vim/.vim/bundle/tsuquyomi
Submodule tsuquyomi updated 2 files
+2 −1 README.md
+1 −1 package.json
2 changes: 1 addition & 1 deletion vim/.vim/bundle/vim-javacomplete2
Submodule vim-javacomplete2 updated 1 files
+1 −1 README.md
1 change: 1 addition & 0 deletions vim/.vim/ftplugin/c.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=ccomplete#Complete
1 change: 1 addition & 0 deletions vim/.vim/ftplugin/css.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=csscomplete#CompleteCSS
2 changes: 2 additions & 0 deletions vim/.vim/ftplugin/html.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
setlocal omnifunc=htmlcomplete#CompleteTags
let g:syntastic_html_checkers = ['htmlhint']
21 changes: 21 additions & 0 deletions vim/.vim/ftplugin/java.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
setlocal omnifunc=javacomplete#Complete
let g:JavaComplete_ImportSortType = 'packageName'
let g:JavaComplete_ImportOrder = ['*']
set makeprg=mvn\ $*
set errorformat=\[%t%[A-Z]%#]\ %f:[%l\\,%c]\ %m,
\\[%t%[A-Z]%#]\ %f:%l:\ %m,
\\%A%f:[%l\\,%c]\ %m,
\\%Csymbol%.%#:\ %m,
\\%Zlocation%.%#:\ %m,
\\%AEmbedded\ error:%.%#\ -\ %f:%l:\ %m,
\\%-Z\ %p^,
\\%A%f:%l:\ %m,
\\%-Z\ %p^,
\\%ARunning\ %f,
\\%+ZTests\ run%.%#FAILURE!%.%#,
\\%ARunning\ %f,
\\%C%.%#,
\\%+ZTests\ run%.%#FAILURE!%.%#,
\\%-G%.%#

let g:completor_java_omni_trigger = '\w+$|[\w\)\]\}\\\'\"]+\.\w*$'
1 change: 1 addition & 0 deletions vim/.vim/ftplugin/javascript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=javascriptcomplete#CompleteJS
2 changes: 2 additions & 0 deletions vim/.vim/ftplugin/markdown.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
setlocal omnifunc=htmlcomplete#CompleteTags

1 change: 1 addition & 0 deletions vim/.vim/ftplugin/python.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=pythoncomplete#Complete
7 changes: 7 additions & 0 deletions vim/.vim/ftplugin/typescript.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
" Deoplete plugin integration
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
let g:deoplete#omni#input_patterns.typescript = ['[^. \t0-9]\.\w*']

" Tsuquyomi and synstatic integration
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']
1 change: 1 addition & 0 deletions vim/.vim/ftplugin/vim.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let g:syntastic_vim_checkers = ['vint']
1 change: 1 addition & 0 deletions vim/.vim/ftplugin/xml.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setlocal omnifunc=xmlcomplete#CompleteTags
52 changes: 6 additions & 46 deletions vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,6 @@
\| exe 'normal! g`"zvzz'
\| endif

" Enable omni completion. (Ctrl-X Ctrl-O)
autocmd VimRc FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd VimRc FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd VimRc FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd VimRc FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
autocmd VimRc FileType css set omnifunc=csscomplete#CompleteCSS
autocmd VimRc FileType c set omnifunc=ccomplete#Complete
autocmd VimRc FileType java set omnifunc=javacomplete#Complete

" use syntax complete if nothing else available
autocmd VimRc Filetype *
\ if &omnifunc == "" |
Expand Down Expand Up @@ -368,10 +359,12 @@
let g:EditorConfig_core_mode = 'external_command' " Speed up editorconfig plugin
let g:EditorConfig_exclude_patterns = ['fugitive://.*'] " Fix EditorConfig for fugitive

" Completion
if has('nvim') && has('python3')
call deoplete#enable()
endif
" Completor and UltiSnips
let g:UltiSnipsExpandTrigger="<c-j>"
let g:completor_auto_trigger = 0
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<C-x>\<C-u>\<C-p>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"
" Fugitive
autocmd VimRc BufReadPost fugitive://* set bufhidden=delete
Expand All @@ -388,8 +381,6 @@
nmap <silent> <leader>mf :SyntasticCheck<CR>
nmap <silent> <leader>mF :make<CR>
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_vim_checkers = ['vint']
let g:syntastic_html_checkers = ['htmlhint']
set statusline+=%#warningmsg#%{SyntasticStatuslineFlag()}%*

" Vim Test
Expand All @@ -398,37 +389,6 @@
nmap <silent> <leader>mT :TestSuite<CR>
nmap <silent> <leader>mtt :TestNearest<CR>
" Language specific {{{
" TypeScript
let g:deoplete#omni#input_patterns = get(g:,'deoplete#omni#input_patterns',{})
let g:deoplete#omni#input_patterns.typescript = ['[^. \t0-9]\.\w*']
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']

" Java
autocmd VimRc FileType java :call EnableJava()
function! EnableJava()
let g:JavaComplete_ImportSortType = 'packageName'
let g:JavaComplete_ImportOrder = ['*']
set makeprg=mvn\ $*
set errorformat=\[%t%[A-Z]%#]\ %f:[%l\\,%c]\ %m,
\\[%t%[A-Z]%#]\ %f:%l:\ %m,
\\%A%f:[%l\\,%c]\ %m,
\\%Csymbol%.%#:\ %m,
\\%Zlocation%.%#:\ %m,
\\%AEmbedded\ error:%.%#\ -\ %f:%l:\ %m,
\\%-Z\ %p^,
\\%A%f:%l:\ %m,
\\%-Z\ %p^,
\\%ARunning\ %f,
\\%+ZTests\ run%.%#FAILURE!%.%#,
\\%ARunning\ %f,
\\%C%.%#,
\\%+ZTests\ run%.%#FAILURE!%.%#,
\\%-G%.%#
endfunction
" }}}

" FZF {{{
" rg command suffix, [options]
function! VRg_raw(command_suffix, ...)
Expand Down
2 changes: 1 addition & 1 deletion zsh/.fzf
Submodule .fzf updated 5 files
+1 −0 .gitignore
+146 −0 README-VIM.md
+4 −69 README.md
+1 −1 bin/fzf-tmux
+175 −0 doc/fzf.txt
4 changes: 0 additions & 4 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@

# Aliases & functions {{{

# Switch to neovim
alias vim='nvim'
alias vimdiff='nvim -d'

# Alias xclip copy/paste
if command -v xclip >/dev/null 2>&1; then
alias xcopy='xclip -i -selection clipboard'
Expand Down

0 comments on commit 34aec9d

Please sign in to comment.