nvim: No more CoC
This commit is contained in:
parent
e7a02dfb22
commit
04ba4c0ddd
1 changed files with 0 additions and 27 deletions
|
@ -50,7 +50,6 @@ Plug 'sainnhe/everforest'
|
||||||
Plug 'patstockwell/vim-monokai-tasty'
|
Plug 'patstockwell/vim-monokai-tasty'
|
||||||
Plug 'antoinemadec/FixCursorHold.nvim'
|
Plug 'antoinemadec/FixCursorHold.nvim'
|
||||||
Plug 'lambdalisue/fern.vim'
|
Plug 'lambdalisue/fern.vim'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
@ -149,29 +148,3 @@ nnoremap <A-h> <C-w>h
|
||||||
nnoremap <A-j> <C-w>j
|
nnoremap <A-j> <C-w>j
|
||||||
nnoremap <A-k> <C-w>k
|
nnoremap <A-k> <C-w>k
|
||||||
nnoremap <A-l> <C-w>l
|
nnoremap <A-l> <C-w>l
|
||||||
|
|
||||||
" COC
|
|
||||||
|
|
||||||
"" Use tab for trigger completion with characters ahead and navigate.
|
|
||||||
"inoremap <silent><expr> <TAB>
|
|
||||||
" \ pumvisible() ? "\<C-n>" :
|
|
||||||
" \ <SID>check_back_space() ? "\<TAB>" :
|
|
||||||
" \ coc#refresh()
|
|
||||||
"inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
||||||
"
|
|
||||||
"function! s:check_back_space() abort
|
|
||||||
" let col = col('.') - 1
|
|
||||||
" return !col || getline('.')[col - 1] =~# '\s'
|
|
||||||
"endfunction
|
|
||||||
"
|
|
||||||
"" Use <c-space> to trigger completion.
|
|
||||||
"if has('nvim')
|
|
||||||
" inoremap <silent><expr> <c-space> coc#refresh()
|
|
||||||
"else
|
|
||||||
" inoremap <silent><expr> <c-@> coc#refresh()
|
|
||||||
"endif
|
|
||||||
"
|
|
||||||
"" Make <CR> auto-select the first completion item and notify coc.nvim to
|
|
||||||
"" format on enter, <cr> could be remapped by other vim plugin
|
|
||||||
"inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
|
||||||
" \: (((add a double quote here after uncommenting this)\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
|
||||||
|
|
Loading…
Reference in a new issue