[nvim] Switch back to mainly YouCompleteMe
This commit is contained in:
parent
206f81f05a
commit
34f183f87f
1 changed files with 45 additions and 33 deletions
|
@ -332,10 +332,11 @@ call plug#begin('~/.config/nvim/plug')
|
||||||
"Plug 'kana/vim-operator-user' " define your own operator easily
|
"Plug 'kana/vim-operator-user' " define your own operator easily
|
||||||
"Plug 'junegunn/vim-peekaboo' " preview registers when pressing \" or @
|
"Plug 'junegunn/vim-peekaboo' " preview registers when pressing \" or @
|
||||||
Plug 'gcmt/wildfire.vim' " smart selection of the closest text object
|
Plug 'gcmt/wildfire.vim' " smart selection of the closest text object
|
||||||
"Plug 'Valloric/YouCompleteMe', { 'for': ['c', 'cpp', 'python', 'haskell'], 'do': 'git submodule update --init --recursive && ./install.py --system-libclang --system-abseil --system-boost --clang-completer --ts-completer' } " code-completion engine
|
"Plug 'Valloric/YouCompleteMe', { 'for': ['c', 'cpp', 'python', 'haskell', 'zig'], 'do': 'git submodule update --init --recursive && ./install.py --system-libclang --system-abseil --system-boost --clang-completer --ts-completer' } " code-completion engine
|
||||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } " code-completion engine
|
Plug 'Valloric/YouCompleteMe', { 'do': 'git submodule update --init --recursive && ./install.py --system-libclang --system-abseil --system-boost --clang-completer --ts-completer' } " code-completion engine
|
||||||
Plug 'deoplete-plugins/deoplete-jedi', { 'for': ['python'] } " complete python
|
Plug 'Shougo/deoplete.nvim', { 'for': ['ocaml', 'mail'], 'do': ':UpdateRemotePlugins' } " code-completion engine
|
||||||
Plug 'Shougo/deoplete-clangx', { 'for': ['c', 'cpp', 'objc'] } " complete C, C++, Objective-C
|
"Plug 'deoplete-plugins/deoplete-jedi', { 'for': ['python'], 'do': 'git submodule update --init' } " complete python
|
||||||
|
"Plug 'Shougo/deoplete-clangx', { 'for': ['c', 'cpp', 'objc'] } " complete C, C++, Objective-C
|
||||||
Plug 'copy/deoplete-ocaml', { 'for': ['ocaml'] } " complete OCaml
|
Plug 'copy/deoplete-ocaml', { 'for': ['ocaml'] } " complete OCaml
|
||||||
Plug 'Shougo/neco-syntax' " complete based on syntax files
|
Plug 'Shougo/neco-syntax' " complete based on syntax files
|
||||||
Plug 'paretje/deoplete-notmuch', { 'for': 'mail' } " complete addresses from notmuch
|
Plug 'paretje/deoplete-notmuch', { 'for': 'mail' } " complete addresses from notmuch
|
||||||
|
@ -510,30 +511,40 @@ let g:wildfire_objects = ["iw", "i'", "i`", 'i"', "i)", "i]", "i}", "ip", "it"]
|
||||||
|
|
||||||
" YouCompleteMe {{{2
|
" YouCompleteMe {{{2
|
||||||
" ------------------
|
" ------------------
|
||||||
" noremap <leader>g :YcmCompleter GoToImprecise<CR>
|
noremap <leader>g :YcmCompleter GoToImprecise<CR>
|
||||||
" noremap <leader>gg <esc>:YcmCompleter GoTo<CR>
|
noremap <leader>gg <esc>:YcmCompleter GoTo<CR>
|
||||||
" noremap <leader>gi <esc>:YcmCompleter GoToImprecise<CR>
|
noremap <leader>gi <esc>:YcmCompleter GoToImprecise<CR>
|
||||||
" noremap <leader>gf <esc>:YcmCompleter FixIt<CR>
|
noremap <leader>gf <esc>:YcmCompleter FixIt<CR>
|
||||||
" noremap <leader>st <esc>:YcmCompleter GetType<CR>
|
noremap <leader>st <esc>:YcmCompleter GetType<CR>
|
||||||
" noremap <leader>si <esc>:YcmCompleter GetTypeImprecise<CR>
|
noremap <leader>si <esc>:YcmCompleter GetTypeImprecise<CR>
|
||||||
"
|
|
||||||
" let g:ycm_enable_diagnostic_highlighting=0
|
let g:ycm_enable_diagnostic_highlighting=0
|
||||||
" let g:ycm_complete_in_comments=1
|
let g:ycm_complete_in_comments=1
|
||||||
"
|
|
||||||
" let g:ycm_seed_identifiers_with_syntax=1
|
let g:ycm_seed_identifiers_with_syntax=1
|
||||||
" let g:ycm_collect_identifiers_from_tags_files=1
|
let g:ycm_collect_identifiers_from_tags_files=1
|
||||||
" let g:ycm_add_preview_to_completeopt=1
|
let g:ycm_add_preview_to_completeopt=1
|
||||||
" let g:ycm_autoclose_preview_window_after_insertion=1
|
let g:ycm_autoclose_preview_window_after_insertion=1
|
||||||
"
|
|
||||||
" let g:ycm_server_python_interpreter='/usr/bin/python3'
|
let g:ycm_server_python_interpreter='/usr/bin/python3'
|
||||||
" let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py'
|
let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py'
|
||||||
" let g:ycm_extra_conf_globlist = ['~/wlk/*', '~/doc/*','~/dev/planet-warrior/*','~/uni/*', '~/dev/wl-overlay/*'] " ,'!~/*'
|
let g:ycm_extra_conf_globlist = ['~/dev/*'] " ,'!~/*'
|
||||||
" "let g:ycm_rust_src_path='/data/programming/rustc-1.7.0/src'
|
"let g:ycm_rust_src_path='/data/programming/rustc-1.7.0/src'
|
||||||
" set completeopt=menu
|
set completeopt=menu
|
||||||
|
|
||||||
|
let g:ycm_language_server =
|
||||||
|
\ [
|
||||||
|
\ {
|
||||||
|
\ 'name': 'zls',
|
||||||
|
\ 'filetypes': [ 'zig' ],
|
||||||
|
\ 'cmdline': [ '/home/ruben/.config/nvim/lsp/zls/zig-out/bin/zls' ]
|
||||||
|
\ }
|
||||||
|
\ ]
|
||||||
|
|
||||||
" deoplete {{{2
|
" deoplete {{{2
|
||||||
" -------------
|
" -------------
|
||||||
|
|
||||||
|
if exists('g:loaded_deoplete')
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
let g:python3_host_prog = "/usr/bin/python3"
|
let g:python3_host_prog = "/usr/bin/python3"
|
||||||
|
|
||||||
|
@ -546,6 +557,7 @@ set completeopt=menu,preview
|
||||||
set completeopt-=noinsert
|
set completeopt-=noinsert
|
||||||
|
|
||||||
inoremap <C-Space>
|
inoremap <C-Space>
|
||||||
|
endif
|
||||||
|
|
||||||
" CtrlP {{{2
|
" CtrlP {{{2
|
||||||
" ----------
|
" ----------
|
||||||
|
|
Loading…
Reference in a new issue