2021-06-11 22:55:32 +02:00
|
|
|
""" LanguageClient
|
|
|
|
" Required for operations modifying multiple buffers like rename.
|
|
|
|
set hidden
|
|
|
|
|
|
|
|
" let g:LanguageClient_serverCommands = {
|
|
|
|
" \ 'javascript': ['/usr/local/bin/javascript-typescript-stdio'],
|
|
|
|
" \ 'javascript.jsx': ['tcp://127.0.0.1:2089'],
|
|
|
|
" \ 'python': ['/usr/local/bin/pyls'],
|
|
|
|
" \ 'ruby': ['~/.rbenv/shims/solargraph', 'stdio'],
|
|
|
|
" \ }
|
|
|
|
|
|
|
|
let g:LanguageClient_serverCommands = {
|
|
|
|
\ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls'],
|
|
|
|
\ 'elixir': ['/usr/lib/elixir-ls/language_server.sh'],
|
|
|
|
\ 'elm': ['/usr/bin/elm-language-server'],
|
|
|
|
\ 'python': ['/usr/bin/pyls'],
|
|
|
|
\ 'go': ['/usr/bin/gopls'],
|
2021-07-19 21:02:39 +02:00
|
|
|
\ 'promql': ['/usr/local/bin/promql-langserver']
|
2021-06-11 22:55:32 +02:00
|
|
|
\ }
|
|
|
|
|
|
|
|
let g:LanguageClient_rootMarkers = {
|
|
|
|
\ 'elm': ['elm.json'],
|
|
|
|
\ }
|
|
|
|
|
|
|
|
" 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)
|
|
|
|
|