heavim/bundles-init/vim-lsp.cfg.vim
Emmanuel BENOîT b14dcbdb6e Various new plugins and related configuration
Mostly stuff I end up using all the time (YCM, vimmake) and some new
plugins meant to be used with rust (rust, vim-lsp, vim-toml)
2018-03-12 21:52:46 +01:00

17 lines
465 B
VimL

au User lsp_setup call lsp#register_server({
\ 'name': 'rust' ,
\ 'cmd' : {server_info->[
\ &shell,
\ &shellcmdflag,
\ 'rustup run stable rls']
\ } ,
\ 'whitelist' : [ 'rust' ] ,
\ })
noremap <Leader>df :LspDocumentFormat<cr>
vnoremap <Leader>df :LspDocumentRangeFormat<cr>
noremap <Leader>dr :LspReferences<cr>
noremap <F3> :LspDefinition<cr>
noremap <Leader>dR :LspRename<cr>
noremap <Leader>dh :LspHover<cr>
noremap <Leader>ds :LspWorkspaceSymbol<cr>