Change vim from youcomplete-me to coc
This commit is contained in:
parent
1cdb102b23
commit
f86693dd98
|
@ -37,3 +37,5 @@ xss-lock
|
||||||
bc
|
bc
|
||||||
gvfs
|
gvfs
|
||||||
gvfs-afc
|
gvfs-afc
|
||||||
|
nodejs
|
||||||
|
npm
|
||||||
|
|
15
vimrc
15
vimrc
|
@ -1,7 +1,8 @@
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
||||||
filetype indent on
|
filetype indent on
|
||||||
|
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||||
|
|
||||||
nnoremap <buffer> <Leader>mm <cmd>make<CR>
|
nnoremap <buffer> <Leader>mm <cmd>make<CR>
|
||||||
|
@ -12,6 +13,8 @@ set foldlevelstart=0
|
||||||
|
|
||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
|
color torte
|
||||||
|
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
@ -28,14 +31,18 @@ set autoindent
|
||||||
set smartindent
|
set smartindent
|
||||||
set tags=./tags,tags;$HOME
|
set tags=./tags,tags;$HOME
|
||||||
|
|
||||||
|
inoremap <silent><expr> <TAB>
|
||||||
|
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||||
|
\ CheckBackspace() ? "\<Tab>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||||
|
|
||||||
|
|
||||||
packadd! termdebug
|
packadd! termdebug
|
||||||
|
|
||||||
highlight ColorColumn ctermbg=magenta
|
highlight ColorColumn ctermbg=magenta
|
||||||
call matchadd('ColorColumn', '\%81v', 100)
|
call matchadd('ColorColumn', '\%81v', 100)
|
||||||
|
|
||||||
let g:ycm_always_populate_location_list = 1
|
|
||||||
|
|
||||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
||||||
if empty(glob(data_dir . '/autoload/plug.vim'))
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
||||||
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
@ -45,7 +52,7 @@ endif
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
|
|
||||||
Plug 'stevearc/vim-arduino'
|
Plug 'stevearc/vim-arduino'
|
||||||
Plug 'ycm-core/YouCompleteMe'
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'ludovicchabant/vim-gutentags'
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
Plug 'tpope/vim-unimpaired'
|
Plug 'tpope/vim-unimpaired'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue