forked from Exafunction/windsurf.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeium.txt
More file actions
124 lines (99 loc) · 4.94 KB
/
codeium.txt
File metadata and controls
124 lines (99 loc) · 4.94 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
*codeium.txt* Codeium
GETTING STARTED *codeium*
Run the `:Codeium Auth` command to login to Codeium. This is required to
enable the plugin.
Once logged in, suggested completions will be displayed inline as virtual
text. You can insert a completion by pressing <Tab>.
COMMANDS *:Codeium*
*:Codeium_Auth*
:Codeium Auth Authenticate to Codeium.
*:Codeium_Disable*
:Codeium Disable Disable Codeium completions
*:Codeium_Enable*
:Codeium Enable Re-enable Codeium completions after running :Codeium Disable
*:Codeium_DisableBuffer*
:Codeium DisableBuffer Disable Codeium completions in the current buffer only.
*:Codeium_EnableBuffer*
:Codeium EnableBuffer Re-enable Codeium completions in the current
buffer after running :Codeium DisableBuffer
*:Codeium_Toggle*
:Codeium Toggle Enable Codeium completions if they are disabled.
Disable Codeium completions if they are enabled. Does
NOT enable completions for current buffer, if they are
disabled with :Codeium DisableBuffer. However, still
affects other buffers.
OPTIONS *codeium-options*
*g:codeium_filetypes*
g:codeium_filetypes A dictionary mapping whether codeium should be
enabled or disabled in certain filetypes. This can
be used to opt out of completions for certain filetypes.
>
let g:codeium_filetypes = {
\ 'bash': v:false,
\ 'typescript': v:true,
\ }
<
*g:codeium_enabled*
g:codeium_enabled A global boolean flag that controls whether codeium
completions are enabled or disabled by default.
>
let g:codeium_enabled = v:true
<
*g:codeium_manual*
g:codeium_manual If true, codeium completions will never automatically
trigger.
>
let g:codeium_manual = v:true
<
*g:codeium_no_map_tab*
g:codeium_no_map_tab A global boolean flag that controls whether codeium
uses <TAB> for the mapping codeium#Accept
>
let g:codeium_no_map_tab = v:true
<
*g:codeium_idle_delay*
g:codeium_idle_delay Delay in milliseconds before autocompletions are
shown (limited by language server to a minimum of 75).
>
let g:codeium_idle_delay = 500
<
*g:codeium_render*
g:codeium_render A global boolean flag that controls whether codeium
renders are enabled or disabled.
>
let g:codeium_render = v:false
<
*g:codeium_tab_fallback*
g:codeium_tab_fallback The fallback key when there is no suggestion display
in `codeium#Accept()`.
>
let g:codeium_tab_fallback = "\t"
<
MAPS *codeium-maps*
*codeium-i_<Tab>*
Codeium.vim defaults to using the <Tab> key to insert the current
suggestion. If there is no suggestion display, the <Tab> key will fallback
to any existing <Tab> mapping you have. This is bound to `codeium#Accept()`
Other Maps ~
*codeium-i_CTRL-]*
<C-]> Dismiss the current suggestion.
<Plug>(codeium-dismiss)
<Cmd>call codeium#Clear()<CR>
*codeium-i_ALT-]*
<M-]> Cycle to the next suggestion.
<Plug>(codeium-next)
<Cmd>call codeium#CycleCompletions(1)<CR>
*codeium-i_ALT-[*
<M-[> Cycle to the previous suggestion.
<Plug>(codeium-previous)
<Cmd>call codeium#CycleCompletions(-1)<CR>
SYNTAX HIGHLIGHTING *codeium-highlighting*
Inline suggestions are highlighted using the CodeiumSuggestion group,
which defaults to a gray color. You can configure this highlight group for
your colorscheme in after/colors/<colorschemename>.vim in your
'runtimepath' (e.g., ~/.config/nvim/after/colors/solarized.vim). Example
declaration:
>
highlight CodeiumSuggestion guifg=#555555 ctermfg=8
<
vim:tw=78:et:ft=help:norl: