summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-07-16 18:13:46 +0200
committerAhmed Abdelhalim <[email protected]>2023-07-16 18:13:46 +0200
commitc0f50258d1019fa69cf5136e40b2ec888365c6d2 (patch)
treeb464226697f600642d6c0bd653f3eab3a05f1416 /.vimrc
parent6281463c907dcc7777e5f25d0934c1151b91d67e (diff)
Remove YCM and use ALE/deoplete instead
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc35
1 files changed, 10 insertions, 25 deletions
diff --git a/.vimrc b/.vimrc
index 1f8c9e9..f8d632a 100644
--- a/.vimrc
+++ b/.vimrc
@@ -11,10 +11,10 @@ Plug 'junegunn/gv.vim'
Plug 'junegunn/limelight.vim'
Plug 'junegunn/goyo.vim'
Plug 'vim-scripts/bufexplorer.zip'
-Plug 'ycm-core/YouCompleteMe', {
- \ 'do': 'python3 ./install.py --clangd-completer --go-completer' }
- " \ 'do': 'python3 ./install.py --clangd-completer --go-completer --java-completer' }
- " \ 'do': 'python3 ./install.py --clangd-completer --ts-completer --go-completer' }
+Plug 'dense-analysis/ale'
+Plug 'Shougo/deoplete.nvim'
+Plug 'roxma/vim-hug-neovim-rpc'
+Plug 'roxma/nvim-yarp', { 'do': 'pip3 install -r requirements.txt' }
Plug 'Valloric/MatchTagAlways'
Plug 'scrooloose/nerdcommenter'
Plug 'preservim/nerdtree'
@@ -164,27 +164,12 @@ autocmd FileType ruby setlocal nospell " disable spell ch
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Plugin maps
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"YouCompleteMe & vim-flake8
-"==========================
-let g:ycm_auto_hover=''
-let g:ycm_enable_diagnostic_signs = 1
-let g:ycm_autoclose_preview_window_after_completion = 1
-let g:ycm_autoclose_preview_window_after_insertion = 1
-
-nnoremap <C-]> :YcmCompleter GoTo<CR>
-nmap <F7> <Plug>(YCMFindSymbolInWorkspace)
-nnoremap <Leader>r :YcmCompleter Format<CR>
-nnoremap <Leader>d :YcmCompleter GetDoc<CR>
-
-" Python pipenv auto complete
-let pipenv_venv_path = system('pipenv --venv')
-if shell_error == 0
- let venv_path = substitute(pipenv_venv_path, '\n', '', '')
- let g:ycm_python_binary_path = venv_path . '/bin/python'
- let g:flake8_cmd = venv_path . '/bin/flake8'
-else
- let g:ycm_python_binary_path = '/usr/local/bin/python3'
-endif
+"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>"
"polyglot"
"=============