Update example settings.
@@ -53,10 +53,13 @@ Example configuration
set hidden
let g:LanguageClient_serverCommands = {
- \ 'rust': ['cargo', 'run', '--release', '--manifest-path=/opt/rls/Cargo.toml'],
+ \ 'rust': [$HOME . '/.cargo/bin/rls'],
\ 'javascript': ['/opt/javascript-typescript-langserver/lib/language-server-stdio.js'],
\ }
+" Automatically start language servers.
+let g:LanguageClient_autoStart = 1
+
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
