summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-11-12 21:06:04 +0100
committerAhmed Abdelhalim <[email protected]>2023-11-12 21:06:04 +0100
commite7b1662303ca3304e53d72531f233b190f3627ad (patch)
treec341fa35b3fcd0e34dac3efaa5f7fa7840b175c7
parent3c0af3eb29030aa49bb60c58ca02f3c4a3686f3b (diff)
Replace deoplete with ddc
-rw-r--r--.vimrc18
1 files changed, 7 insertions, 11 deletions
diff --git a/.vimrc b/.vimrc
index 14840c4..68a3798 100644
--- a/.vimrc
+++ b/.vimrc
@@ -3,10 +3,9 @@ set nocompatible
filetype off
call plug#begin('~/.vim/bundle')
" Auto completion
+Plug 'Shougo/ddc.vim'
+Plug 'vim-denops/denops.vim'
Plug 'dense-analysis/ale'
-Plug 'Shougo/deoplete.nvim'
-Plug 'roxma/vim-hug-neovim-rpc'
-Plug 'roxma/nvim-yarp', { 'do': 'pip3 install -r requirements.txt' }
" Essential plugins
Plug 'editorconfig/editorconfig-vim'
@@ -178,15 +177,12 @@ let g:ale_linters = {
\}
" let g:go_fmt_command="gopls"
let g:go_gopls_gofumpt=1
+let g:ale_completion_enabled = 1
-"Deoplete (Auto complete)
-"========================
-let g:deoplete#enable_at_startup = 1
-" use tab for cycle through the omnifunc suggestions
-inoremap <silent><expr> <Tab>
- \ pumvisible() ? "\<C-n>" : "\<TAB>"
-inoremap <silent><expr> <S-Tab>
- \ pumvisible() ? "\<C-p>" : "\<S-TAB>"
+"DDC
+"===
+inoremap <expr> <TAB> pumvisible() ? '<C-n>' : '<TAB>'
+inoremap <expr> <S-TAB> pumvisible() ? '<C-p>' : '<C-h>'
"polyglot"
"=============