Skip to content

Instantly share code, notes, and snippets.

@vext01
Created August 4, 2020 13:50
Show Gist options
  • Save vext01/571874d74fed06eba697c13cdeb6472d to your computer and use it in GitHub Desktop.
Save vext01/571874d74fed06eba697c13cdeb6472d to your computer and use it in GitHub Desktop.
language server nvim
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
syntax on
call plug#begin('~/.vim/plugged')
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
call plug#end()
set hidden
if executable('rust-analyzer')
let g:LanguageClient_serverCommands = {
\ 'rust': ['rust-analyzer'],
\ }
endif
nmap <silent>K <Plug>(lcn-hover)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment