From 526dbb607337e34784869429c5ec500161c352cd Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 20 Apr 2023 11:15:40 +0100 Subject: Removes YouCompleteMe and adds easycomplete --- vim/vimrc | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 11e95a4..0f226a2 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -59,7 +59,8 @@ Plug 'jlanzarotta/bufexplorer' Plug 'tpope/vim-fugitive' Plug 'tpope/vim-dispatch' Plug 'tpope/vim-commentary' -Plug 'ycm-core/YouCompleteMe' +"Plug 'ycm-core/YouCompleteMe' +Plug 'jayli/vim-easycomplete' Plug 'rose-pine/vim' Plug 'SirVer/UltiSnips' Plug 'honza/vim-snippets' @@ -68,7 +69,8 @@ Plug 'davidhalter/jedi-vim' Plug 'evanleck/vim-svelte' call plug#end() -" jedi-vim +" easycomplete +let g:easycomplete_tab_trigger="" let g:jedi#goto_command = "d" let g:jedi#goto_assignments_command = "g" @@ -80,15 +82,28 @@ let g:jedi#completions_command = "" let g:jedi#rename_command = "r" let g:jedi#rename_command_keep_name = "R" -" YCM -let g:ycm_enable_inlay_hints = 1 -nnoremap h (YCMToggleInlayHints) -nnoremap gd :YcmCompleter GoToDefinition -nnoremap gr :YcmCompleter GoToReferences -nnoremap K :YcmCompleter GetDoc -" this will disable tab, allowing it to be used for ultisnips -let g:ycm_key_list_select_completion = ['', ''] -let g:ycm_key_list_previous_completion = ['', ''] +" " YCM +" let g:ycm_enable_inlay_hints = 1 +" nnoremap h (YCMToggleInlayHints) +" nnoremap gd :YcmCompleter GoToDefinition +" nnoremap gr :YcmCompleter GoToReferences +" nnoremap K :YcmCompleter GetDoc +" " this will disable tab, allowing it to be used for ultisnips +" let g:ycm_key_list_select_completion = ['', ''] +" let g:ycm_key_list_previous_completion = ['', ''] +" let g:ycm_python_interpreter_path = '.venv/bin/python3' +" let g:ycm_auto_trigger = 0 +" let g:ycm_enable_inlay_hints = 0 +" let g:ycm_python_sys_path = [] +" let g:ycm_show_diagnostics_ui = 0 +" let g:ycm_extra_conf_vim_data = [ +" \ 'g:ycm_python_interpreter_path', +" \ 'g:ycm_python_sys_path' +" \] +" let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' +" nnoremap jd :YcmCompleter GoTo +" imap (YCMToggleSignatureHelp)'. + " snippets @@ -187,16 +202,6 @@ let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" -" YouCompleteMe -let g:ycm_python_interpreter_path = '.venv/bin/python3' -let g:ycm_python_sys_path = [] -let g:ycm_extra_conf_vim_data = [ - \ 'g:ycm_python_interpreter_path', - \ 'g:ycm_python_sys_path' - \] -let g:ycm_global_ycm_extra_conf = '~/.global_extra_conf.py' -nnoremap jd :YcmCompleter GoTo - " vim-test " use vim-dispatch to run tests in the quickfix window " from Modern Vim Ch.4 -- cgit v1.2.3