NeoVim Plugins setup


deoplete

  • Requirments
  • python3 (enviroment setup)
  • packages : pynvim, msgpack, jedi
pip3 install --user pynvim
pip install --user --upgrade msgpack
pip install --user jedi
  • open init.vim and add this to vim-plug
  • Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
    Plug 'deoplete-plugins/deoplete-jedi'
  • Append these lines to init.vim
  • let g:python3_host_prog = expand('~/path/to/python')
  • inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
    function! s:my_cr_function()
        return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
    endfunction
    inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"

  • Open neovim and run command :UpdateRemotePlugins

Comments