Skip to content

Commit 357bd5f

Browse files
committed
change to coc
1 parent 802b110 commit 357bd5f

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

tools/neovim/init.vim

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ call plug#begin('~/.local/share/nvim/plugged')
22
"lint
33
Plug 'w0rp/ale', { 'on': 'ALEToggle' }
44
"complete
5-
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
6-
"viml complete source
7-
Plug 'Shougo/neco-vim'
8-
"language server
9-
Plug 'autozimu/LanguageClient-neovim', {
10-
\ 'branch': 'next',
11-
\ 'do': 'bash install.sh',
12-
\ }
5+
Plug 'neoclide/coc.nvim', {'branch': 'release'}
136
"outline
147
Plug 'majutsushi/tagbar'
158
Plug 'vim-airline/vim-airline'
@@ -74,14 +67,6 @@ call plug#end()
7467
let mapleader=","
7568
set noswapfile
7669
map <leader>js :call json_format#parse("l")<cr>
77-
" deoplete
78-
let g:deoplete#enable_at_startup = 1
79-
let g:deoplete#ignore_sources = get(g:, 'deoplete#ignore_sources', {})
80-
set hidden
81-
let g:LanguageClient_diagnosticsEnable = 0
82-
let g:LanguageClient_serverCommands = {
83-
\ 'python': ['pyls'],
84-
\ }
8570
" <TAB>: completion.
8671
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
8772
@@ -142,7 +127,6 @@ let g:go_highlight_operators = 1
142127
let g:go_highlight_structs = 1
143128
let g:go_highlight_types = 1
144129

145-
"
146130
func! RunProgram()
147131
exec "w"
148132
if &filetype == 'c'
@@ -366,8 +350,6 @@ let s:bot = {
366350
\ }
367351
\ }
368352
let g:vwm#layouts = [s:bot]
369-
"https://github.com/Shougo/deoplete.nvim/issues/440
370-
let g:deoplete#auto_complete_delay = 150
371353

372354
" clang_format
373355
let g:clang_format#style_options = {

tools/neovim/ubuntu_init.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function python_ins(){
3737
echo "python ins"
3838
}
3939
function java_ins(){
40-
! (grep -F 'jdtls' ~/.config/nvim/init.vim &>/dev/null ) && \
41-
sed -i "/LanguageClient_serverCommands/a \\\\\ 'java': ['/usr/local/bin/jdtls', '-data', getcwd()]," ~/.config/nvim/init.vim
40+
echo "java ins"
4241
}
4342
function lua_ins(){
4443
! (grep -F 'lua-lsp' ~/.config/nvim/init.vim &>/dev/null ) && \

0 commit comments

Comments
 (0)