Based on completor.vim.
Here, I am using vim-plug:
Plug 'maralla/completor.vim'
Plug 'damnever/completor-elixir', { 'do': 'make' }
In case of package manager has no post-update hooks, run the following commands to resolve deps:
cd /path/to/plugin/completor-elixir
make
Add the following lines to your .vimrc
:
" jump to definition
noremap <leader>jd :call completor#do('definition')<CR>
" show document
noremap <s-k> :call completor#do('doc')<CR>