summaryrefslogtreecommitdiff
path: root/_config/200-lsp.vim
blob: 4cfcbb29df5590d099cd1b9474e9b1b21f62c736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
if empty(globpath(&rtp, 'autoload/lsp.vim'))
  finish
endif

let g:lsp_diagnostics_enabled = 1
let g:lsp_diagnostics_float_cursor = 1
let g:lsp_signs_error = {'text': '✗'}
let g:lsp_signs_warning = {'text': '🐍'}
let g:lsp_signs_hint = {'text': '🦉'} " icons require GUI
let g:lsp_signs_enabled = 1         " enable signs
let g:lsp_diagnostics_echo_cursor = 1 " enable echo under cursor when in normal mode
" let g:lsp_ultisnips_integration = 1
" for debug
" let g:lsp_log_verbose = 1
" let g:lsp_log_file = expand('~/vim-lsp.log')
" let g:asyncomplete_log_file = expand('~/asyncomplete.log')

let g:lsp_settings = {
\  'efm-langserver': {
\    'disabled': 0,
\   }
\}

autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif

nmap gd <plug>(lsp-definition)
nmap gD <plug>(lsp-references)
nmap K <plug>(lsp-hover)
nmap ]s <plug>(lsp-next-error)
nmap [s <plug>(lsp-previous-error)