Created
August 4, 2020 13:50
-
-
Save vext01/571874d74fed06eba697c13cdeb6472d to your computer and use it in GitHub Desktop.
language server nvim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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