Skip to content

Commit 71ed2dc

Browse files
zArubaruMissLov3ly
authored andcommitted
Add new variable: g:codeium_filetypes_disabled_by_default.
Enables finer control of when to enable codeium.
1 parent 98d6c11 commit 71ed2dc

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

+16-4
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,27 @@ let g:codeium_filetypes = {
116116

117117
Codeium is enabled by default for most filetypes.
118118

119-
You can also _disable_ codeium by default with the `g:codeium_enabled`
120-
variable:
119+
You can also _disable_ codeium by default with the `g:codeium_enabled` variable,
120+
and enable it manually per buffer by running `:CodeiumEnable`:
121121

122122
```vim
123123
let g:codeium_enabled = v:false
124124
```
125125

126-
Instead, if you would like to just disable the automatic triggering of
127-
completions:
126+
Or you can disable codeium for _all filetypes_ with the `g:codeium_filetypes_disabled_by_default` variable,
127+
and use the `g:codeium_filetypes` variable to selectively enable codeium for specified filetypes:
128+
129+
```vim
130+
" let g:codeium_enabled = v:true
131+
let g:codeium_filetypes_disabled_by_default = v:true
132+
133+
let g:codeium_filetypes = {
134+
\ "rust": v:true,
135+
\ "typescript": v:true,
136+
\ }
137+
```
138+
139+
If you would like to just disable the automatic triggering of completions:
128140

129141
```vim
130142
let g:codeium_manual = v:true

0 commit comments

Comments
 (0)