diff options
author | Matthew Lemon <y@yulqen.org> | 2023-04-20 11:15:40 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-04-20 11:15:40 +0100 |
commit | 526dbb607337e34784869429c5ec500161c352cd (patch) | |
tree | 23a126dadb87b38fa36f6bae1d379095f766e220 /vim/vimrc | |
parent | fc4c3f4317fa715b597bd103bde03913f97b2f7e (diff) |
Removes YouCompleteMe and adds easycomplete
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 47 |
1 files changed, 26 insertions, 21 deletions
@@ -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="<c-space>" let g:jedi#goto_command = "<leader>d" let g:jedi#goto_assignments_command = "<leader>g" @@ -80,15 +82,28 @@ let g:jedi#completions_command = "<C-Space>" let g:jedi#rename_command = "<leader>r" let g:jedi#rename_command_keep_name = "<leader>R" -" YCM -let g:ycm_enable_inlay_hints = 1 -nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints) -nnoremap gd :YcmCompleter GoToDefinition<CR> -nnoremap <leader>gr :YcmCompleter GoToReferences<CR> -nnoremap K :YcmCompleter GetDoc<CR> -" this will disable tab, allowing it to be used for ultisnips -let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] -let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] +" " YCM +" let g:ycm_enable_inlay_hints = 1 +" nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints) +" nnoremap gd :YcmCompleter GoToDefinition<CR> +" nnoremap <leader>gr :YcmCompleter GoToReferences<CR> +" nnoremap K :YcmCompleter GetDoc<CR> +" " this will disable tab, allowing it to be used for ultisnips +" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>'] +" let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>'] +" 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 <leader>jd :YcmCompleter GoTo<CR> +" imap <silent> <C-l> <Plug>(YCMToggleSignatureHelp)'. + " snippets @@ -187,16 +202,6 @@ let g:UltiSnipsExpandTrigger="<tab>" let g:UltiSnipsJumpForwardTrigger="<c-j>" let g:UltiSnipsJumpBackwardTrigger="<c-k>" -" 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 <leader>jd :YcmCompleter GoTo<CR> - " vim-test " use vim-dispatch to run tests in the quickfix window " from Modern Vim Ch.4 |