Skip to content

Instantly share code, notes, and snippets.

@Deepwalker
Created December 11, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deepwalker/334700d229bb7c184bce9d53b96d9839 to your computer and use it in GitHub Desktop.
Save Deepwalker/334700d229bb7c184bce9d53b96d9839 to your computer and use it in GitHub Desktop.
set hidden
call plug#begin('~/.vim/plugged')
" Elixir
Plug 'elixir-editors/vim-elixir'
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
" (Optional) Multi-entry selection UI.
Plug 'junegunn/fzf'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" All of your Plugins must be added before the following line
call plug#end()
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
\ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
\ 'python': ['/usr/local/bin/pyls'],
\ 'elixir': ['<YOUR PATH>/elixir-ls/rel/language_server.sh'],
\ }
let g:LanguageClient_rootMarkers = {
\ 'elixir': ['mix.exs'],
\ }
let g:deoplete#enable_at_startup = 1
nnoremap <F5> :call LanguageClient_contextMenu()<CR>
" Or map each action separately
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment