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 | |
parent | 155d2c6c9935126efa499c16245f38f43c2ddd06 (diff) |
added YCM
-rw-r--r-- | global_extra_conf_ycm.py | 6 | ||||
-rw-r--r-- | mutt/cache/headers | bin | 924928 -> 0 bytes | |||
-rw-r--r-- | vim/vimrc | 14 |
3 files changed, 18 insertions, 2 deletions
diff --git a/global_extra_conf_ycm.py b/global_extra_conf_ycm.py new file mode 100644 index 0000000..1c52fdb --- /dev/null +++ b/global_extra_conf_ycm.py @@ -0,0 +1,6 @@ +def Settings(**kwargs): + client_data = kwargs["client_data"] + return { + "interpreter_path": client_data["g:ycm_python_interpreter_path"], + "sys_path": client_data["g:ycm_python_sys_path"], + } diff --git a/mutt/cache/headers b/mutt/cache/headers Binary files differdeleted file mode 100644 index d55d85e..0000000 --- a/mutt/cache/headers +++ /dev/null @@ -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 |