24 lines
768 B
Plaintext
24 lines
768 B
Plaintext
|
{# LSP client for Vim8 and neovim #}
|
|||
|
{{ add_source('prabirshrestha/vim-lsp') -}}
|
|||
|
{{ add_source('mattn/vim-lsp-settings') -}}
|
|||
|
" (providers are automatically detected thanks to vim-lsp-settings.
|
|||
|
" You can even install some locally using :LspInstallServer)
|
|||
|
|
|||
|
nnoremap gd :LspDefinition<CR>
|
|||
|
nnoremap gD :LspDeclaration<CR>
|
|||
|
nnoremap <F3> :LspDocumentFormat<CR>
|
|||
|
vnoremap <F3> :LspDocumentRangeFormat<CR>
|
|||
|
nnoremap gE :LspNextDiagnostic<CR>
|
|||
|
nnoremap ge :LspNextError<CR>
|
|||
|
nnoremap <F2> :LspRename<CR>
|
|||
|
|
|||
|
let g:lsp_signs_enabled = 1
|
|||
|
let g:lsp_diagnostics_echo_cursor = 1
|
|||
|
|
|||
|
let g:lsp_signs_error = {'text': '✗'}
|
|||
|
let g:lsp_signs_warning = {'text': '‼'}
|
|||
|
let g:lsp_signs_information = {'text': 'ℹ'}
|
|||
|
let g:lsp_signs_hint = {'text': '?'}
|
|||
|
|
|||
|
let g:lsp_highlight_references_enabled = 1
|