2020-12-04 23:54:53 +01:00
|
|
|
" Highlight references
|
2019-09-30 23:10:32 +02:00
|
|
|
let g:lsp_highlight_references_enabled = 1
|
2020-12-04 23:54:53 +01:00
|
|
|
highlight lspReference cterm=bold,italic ctermfg=148 ctermbg=0
|
2019-09-30 23:10:32 +02:00
|
|
|
|
2020-12-04 23:54:53 +01:00
|
|
|
" Error/warning signs
|
2022-12-31 13:36:20 +01:00
|
|
|
let g:lsp_diagnostics_signs_enabled = 1
|
2019-09-30 23:10:32 +02:00
|
|
|
let g:lsp_diagnostics_echo_cursor = 1
|
2022-12-31 13:36:20 +01:00
|
|
|
let g:lsp_diagnostics_signs_error = {'text': '✗'}
|
|
|
|
let g:lsp_diagnostics_signs_warning = {'text': '‼'}
|
|
|
|
|
|
|
|
" "Virtual" text right in the middle of the code? hell no.
|
|
|
|
let g:lsp_diagnostics_virtual_text_enabled = 0
|
2018-03-12 21:52:46 +01:00
|
|
|
|
2020-12-04 23:54:53 +01:00
|
|
|
" Keyboard shortcuts
|
2022-07-31 10:09:27 +02:00
|
|
|
noremap <Leader>lR :LspRename<cr>
|
|
|
|
noremap <Leader>lS :LspWorkspaceSymbol<cr>
|
|
|
|
noremap <Leader>la :LspCodeAction<cr>
|
2020-12-07 16:36:17 +01:00
|
|
|
noremap <Leader>ld :LspDocumentDiagnostics<cr>
|
|
|
|
noremap <Leader>lf :LspDocumentFormat<cr>
|
|
|
|
noremap <Leader>lgD :LspDeclaration<cr>
|
2022-07-31 10:09:27 +02:00
|
|
|
noremap <Leader>lgd :LspDefinition<cr>
|
2020-12-07 16:36:17 +01:00
|
|
|
noremap <Leader>li :LspHover<cr>
|
|
|
|
noremap <Leader>lr :LspReferences<cr>
|
|
|
|
noremap <Leader>ls :LspDocumentSymbol<cr>
|