Last active
December 14, 2020 13:25
-
-
Save gut5/53e9d25f370ad9b50ec6b122183b434c to your computer and use it in GitHub Desktop.
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
set number | |
set hlsearch | |
set incsearch | |
set foldmethod=indent | |
syntax enable | |
filetype plugin indent on | |
" Specify a directory for plugins | |
" - For Neovim: stdpath('data') . '/plugged' | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin(stdpath('data') . '/plugged') | |
Plug 'rust-lang/rust.vim' | |
Plug 'junegunn/fzf.vim' | |
Plug 'autozimu/LanguageClient-neovim', { | |
\ 'branch': 'next', | |
\ 'do': 'bash install.sh', | |
\ } | |
" Initialize plugin system | |
call plug#end() | |
let g:LanguageClient_serverCommands = { | |
\ 'rust': ['rust-analyzer'], | |
\ } | |
" Required for operations modifying multiple buffers like rename. | |
set hidden | |
" note that if you are using Plug mapping you should not use `noremap` mappings. | |
nmap <F5> <Plug>(lcn-menu) | |
" Or map each action separately | |
nmap <silent>K <Plug>(lcn-hover) | |
nmap <silent> gd <Plug>(lcn-definition) | |
nmap <silent> <F2> <Plug>(lcn-rename) | |
" for RLS | |
" nvim +PlugInstall +UpdateRemotePlugins +qa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment