Change vim from youcomplete-me to coc
This commit is contained in:
parent
1cdb102b23
commit
f86693dd98
|
@ -37,3 +37,5 @@ xss-lock
|
|||
bc
|
||||
gvfs
|
||||
gvfs-afc
|
||||
nodejs
|
||||
npm
|
||||
|
|
15
vimrc
15
vimrc
|
@ -1,7 +1,8 @@
|
|||
filetype plugin on
|
||||
|
||||
filetype indent on
|
||||
|
||||
set encoding=utf-8
|
||||
|
||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
|
||||
nnoremap <buffer> <Leader>mm <cmd>make<CR>
|
||||
|
@ -12,6 +13,8 @@ set foldlevelstart=0
|
|||
|
||||
set showcmd
|
||||
|
||||
color torte
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set hlsearch
|
||||
|
@ -28,14 +31,18 @@ set autoindent
|
|||
set smartindent
|
||||
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
|
||||
|
||||
highlight ColorColumn ctermbg=magenta
|
||||
call matchadd('ColorColumn', '\%81v', 100)
|
||||
|
||||
let g:ycm_always_populate_location_list = 1
|
||||
|
||||
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.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'
|
||||
|
@ -45,7 +52,7 @@ endif
|
|||
call plug#begin()
|
||||
|
||||
Plug 'stevearc/vim-arduino'
|
||||
Plug 'ycm-core/YouCompleteMe'
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
Plug 'ludovicchabant/vim-gutentags'
|
||||
Plug 'tpope/vim-unimpaired'
|
||||
|
||||
|
|
Loading…
Reference in a new issue