Browse Source

Display LSP errors on the location list (so it doesnt mess with grep/quickfix)

master
Julio Biason 4 years ago
parent
commit
486f920bd5
  1. 5
      nvim/init.vim

5
nvim/init.vim

@ -66,10 +66,15 @@ let g:polyglot_disabled = ['sensible', 'csv']
" }}}
" LanguageClient {{{
" Available analyzers.
let g:LanguageClient_serverCommands = {
\ 'rust': ['rust-analyzer'],
\ 'python': ['pyls'],
\ }
" Display hints in the location list (default is QuickFix, which conflicts
" with `:grep`).
let g:LanguageClient_selectionUI = 'location-list'
nnoremap <silent> <leader>] :call LanguageClient#textDocument_definition()<CR>
nnoremap <silent> <leader>k :call LanguageClient#textDocument_hover()<CR>
nnoremap <silent> <leader>r :call LanguageClient#textDocument_rename()<CR>

Loading…
Cancel
Save