blob: 8b9fb34c352c04c4967b9995071aa3ec071c8d2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
" Required for operations modifying multiple buffers like rename.
set hidden
let g:LanguageClient_autoStart = 1
let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
\ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
\ 'python': ['pyls'],
\ 'sh': ['bash-language-server', 'start'],
\ }
" pyls doesn't need a path because it is defined in the neovim virtual
" environment"
" TODO add this to script npm i -g bash-language-server
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <F3> :call LanguageClient#textDocument_rename()<CR>
|