aboutsummaryrefslogtreecommitdiff
path: root/init.vim
blob: 402f7a61415fba2d1417b1a6d357b5c08ef198d3 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
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

    let g:deoplete#sources#clang#include_default_arguments=1
    " suggestions in alphabetic order
    call deoplete#custom#source('_', 'sorters', ['sorter_word'])
    call deoplete#custom#filter('converter_reorder_attr',
                               \  'attrs_order', {
                               \    '_': {
                               \      'kind': [
                               \        'Function',
                               \        'Property'
                               \      ]
                               \   },
                               \})   
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


..