[nvim] Switch back to mainly YouCompleteMe

This commit is contained in:
Midgard 2023-01-13 18:38:23 +01:00
parent 206f81f05a
commit 34f183f87f
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -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,42 +511,53 @@ 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
" ------------- " -------------
let g:deoplete#enable_at_startup = 1 if exists('g:loaded_deoplete')
let g:python3_host_prog = "/usr/bin/python3" let g:deoplete#enable_at_startup = 1
let g:python3_host_prog = "/usr/bin/python3"
call deoplete#custom#option({ call deoplete#custom#option({
\ 'camel_case': v:true, \ 'camel_case': v:true,
\ 'smart_case': v:true, \ 'smart_case': v:true,
\ }) \ })
set completeopt=menu,preview set completeopt=menu,preview
set completeopt-=noinsert set completeopt-=noinsert
inoremap <C-Space>  inoremap <C-Space> 
endif
" CtrlP {{{2 " CtrlP {{{2
" ---------- " ----------