summaryrefslogtreecommitdiff
path: root/.vim/autoload/omni/cpp/settings.vim
blob: 6683d3a3a7928e823ae0c3863c2a58c80a9d0840 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
" Description: Omni completion script for cpp files
" Maintainer:  Vissale NEANG
" Last Change: 26 sept. 2007

function! omni#cpp#settings#Init()
    " Global scope search on/off
    "   0 = disabled
    "   1 = enabled
    if !exists('g:OmniCpp_GlobalScopeSearch') 
        let g:OmniCpp_GlobalScopeSearch = 1
    endif

    " Sets the namespace search method
    "   0 = disabled
    "   1 = search namespaces in the current file
    "   2 = search namespaces in the current file and included files
    if !exists('g:OmniCpp_NamespaceSearch') 
        let g:OmniCpp_NamespaceSearch = 1
    endif

    " Set the class scope completion mode
    "   0 = auto
    "   1 = show all members (static, public, protected and private)
    if !exists('g:OmniCpp_DisplayMode') 
        let g:OmniCpp_DisplayMode = 0
    endif

    " Set if the scope is displayed in the abbr column of the popup
    "   0 = no
    "   1 = yes
    if !exists('g:OmniCpp_ShowScopeInAbbr') 
        let g:OmniCpp_ShowScopeInAbbr = 0
    endif

    " Set if the function prototype is displayed in the abbr column of the popup
    "   0 = no
    "   1 = yes
    if !exists('g:OmniCpp_ShowPrototypeInAbbr') 
        let g:OmniCpp_ShowPrototypeInAbbr = 0
    endif
    
    " Set if the access (+,#,-) is displayed
    "   0 = no
    "   1 = yes
    if !exists('g:OmniCpp_ShowAccess') 
        let g:OmniCpp_ShowAccess = 1
    endif

    " Set the list of default namespaces
    " eg: ['std']
    if !exists('g:OmniCpp_DefaultNamespaces') 
        let g:OmniCpp_DefaultNamespaces = []
    endif

    " Set MayComplete to '.'
    "   0 = disabled
    "   1 = enabled
    "   default = 1
    if !exists('g:OmniCpp_MayCompleteDot') 
        let g:OmniCpp_MayCompleteDot = 1
    endif

    " Set MayComplete to '->'
    "   0 = disabled
    "   1 = enabled
    "   default = 1
    if !exists('g:OmniCpp_MayCompleteArrow') 
        let g:OmniCpp_MayCompleteArrow = 1
    endif

    " Set MayComplete to dot
    "   0 = disabled
    "   1 = enabled
    "   default = 0
    if !exists('g:OmniCpp_MayCompleteScope') 
        let g:OmniCpp_MayCompleteScope = 0
    endif

    " When completeopt does not contain longest option, this setting 
    " controls the behaviour of the popup menu selection when starting the completion
    "   0 = don't select first item
    "   1 = select first item (inserting it to the text)
    "   2 = select first item (without inserting it to the text)
    "   default = 0
    if !exists('g:OmniCpp_SelectFirstItem') 
        let g:OmniCpp_SelectFirstItem= 0
    endif

    " Use local search function for variable definitions
    "   0 = use standard vim search function
    "   1 = use local search function
    "   default = 0
    if !exists('g:OmniCpp_LocalSearchDecl') 
        let g:OmniCpp_LocalSearchDecl= 0
    endif
endfunc