From 6dcd58adc99d9a2894d0ced2087673a28b865023 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 3 Apr 2020 00:38:05 +0200 Subject: [PATCH] friendship ended with deoplete, coc is my new best friend --- .config/nvim/init.vim | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 43e085d..0746386 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -107,13 +107,11 @@ autocmd BufWritePre * %s/\s\+$//e " Plugin section call plug#begin('~/.config/nvim/plugged') -" Autocorrect -Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +" Autocomplete +Plug 'neoclide/coc.nvim', {'branch': 'release'} " Latex Upgrades Plug 'donRaphaco/neotex', { 'for': 'tex'} Plug 'lervag/vimtex', {'for': 'tex'} -" Java Upgrades -Plug 'artur-shaik/vim-javacomplete2' " Indexing and Overview tools Plug 'preservim/nerdtree' Plug 'majutsushi/tagbar' @@ -123,37 +121,26 @@ Plug 'airblade/vim-gitgutter' Plug 'FredKSchott/CoVim' " Bulk Renamer Plug 'qpkorr/vim-renamer' -" Python3 Upgrades -Plug 'zchee/deoplete-jedi' call plug#end() "tagbar map :TagbarToggle -let g:tagbar_left = 1 "nerdtree map :NERDTreeToggle autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif -let g:NERDTreeWinPos = "right" +let g:NERDTreeWinPos = "left" "neotex let g:neotex_enabled = 2 -"deoplete -let g:deoplete#enable_at_startup = 1 -let g:deoplete#enable_smart_case = 1 -let g:deoplete#sources = {} -let g:deoplete#sources.java = ['jc', 'javacomplete2', 'file', 'buffer'] -call deoplete#custom#var('omni', 'input_patterns', { - \ 'tex': g:vimtex#re#deoplete - \}) -""tab as remapping for deoplete +" CoVim +let CoVim_default_name = "TiynGER" +let CoVim_default_port = "7000" +" Coc inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : - \ deoplete#mappings#manual_complete() -function! s:check_back_space() abort "" {{{ + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort let col = col('.') - 1 - return !col || getline('.')[col - 1] =~ '\s' -endfunction "" }}} -" javacomplete2 -autocmd FileType java setlocal omnifunc=javacomplete#Complete -" CoVim -let CoVim_default_name = "TiynGER" -let CoVim_default_port = "7000" + return !col || getline('.')[col - 1] =~# '\s' +endfunction