aboutsummaryrefslogtreecommitdiff
path: root/init.vim
blob: 590f12b2314fadb42c84a4d14f409fbb0a63896f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common'

set packpath+=pack/neovim

"=======================================================================================================================
augroup DEOPLETE
    inoremap <silent><expr> <C-Space>    deoplete#mappings#manual_complete()

    let g:deoplete#enable_at_startup     = 1
    let g:echodoc#enable_at_startup      = 1
    let g:LanguageClient_serverCommands  = {
                \ 'cpp': ['clangd'],
                \ 'c': ['clangd']
                \ }


    let g:LanguageClient_diagnosticsDisplay = {
                \     1: {
                \         "name": "Error",
                \         "texthl": "ALEError",
                \         "signText": "✖",
                \         "signTexthl": "ALEErrorSign",
                \     },
                \     2: {
                \         "name": "Warning",
                \         "texthl": "ALEWarning",
                \         "signText": "⚠",
                \         "signTexthl": "ALEWarningSign",
                \     },
                \     3: {
                \         "name": "Information",
                \         "texthl": "ALEInfo",
                \         "signText": '🛈',
                \         "signTexthl": "ALEInfoSign",
                \     },
                \     4: {
                \         "name": "Hint",
                \         "texthl": "ALEInfo",
                \         "signText": "➤",
                \         "signTexthl": "ALEInfoSign",
                \     },
                \ }

    packadd deoplete.nvim
    packadd LanguageClient-neovim
    packadd echodoc.vim
augroup END

"=======================================================================================================================
augroup ALE
    let g:ale_set_highlights    = 0

    let g:ale_sign_error        = ''
    let g:ale_sign_style_error  = ''
    let g:ale_sign_info         = '🛈'
    let g:ale_sign_warning      = ''

    highlight link ALEErrorSign    LineNr
    highlight link ALEWarningSign  LineNr

    packadd ale
augroup END


..