diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-07 11:26:21 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-07 11:28:10 +0100 |
commit | a2f9684f87d48d34802bfd26ba9af19811171391 (patch) | |
tree | 4dd00ab400f0b822723cea4fe4ff4713aae0aba7 /vim/vimrc | |
parent | 155d2c6c9935126efa499c16245f38f43c2ddd06 (diff) |
added YCM
Diffstat (limited to '')
-rw-r--r-- | vim/vimrc | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -144,6 +144,7 @@ autocmd BufLeave * call s:copy_filename_as_mdlink() call plug#begin('~/.vim/plugged') Plug 'morhetz/gruvbox' Plug 'ledger/vim-ledger' +Plug 'ycm-core/YouCompleteMe' "Plug 'prabirshrestha/vim-lsp' Plug 'ledger/vim-ledger' "Plug 'alok/notational-fzf-vim' @@ -173,9 +174,18 @@ Plug 'fatih/vim-go', { 'tag': '*' } Plug 'powerman/vim-plugin-AnsiEsc' "Plug 'majutsushi/tagbar' call plug#end() - -" vim-test +" 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 " the mappings below are from vim-test |