Skip to content

Commit

Permalink
Add new variable: g:codeium_filetypes_disabled_by_default.
Browse files Browse the repository at this point in the history
Enables finer control of when to enable codeium.
  • Loading branch information
zArubaru authored and MissLov3ly committed Feb 13, 2024
1 parent 98d6c11 commit 71ed2dc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,27 @@ let g:codeium_filetypes = {

Codeium is enabled by default for most filetypes.

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

```vim
let g:codeium_enabled = v:false
```

Instead, if you would like to just disable the automatic triggering of
completions:
Or you can disable codeium for _all filetypes_ with the `g:codeium_filetypes_disabled_by_default` variable,
and use the `g:codeium_filetypes` variable to selectively enable codeium for specified filetypes:

```vim
" let g:codeium_enabled = v:true
let g:codeium_filetypes_disabled_by_default = v:true
let g:codeium_filetypes = {
\ "rust": v:true,
\ "typescript": v:true,
\ }
```

If you would like to just disable the automatic triggering of completions:

```vim
let g:codeium_manual = v:true
Expand Down

0 comments on commit 71ed2dc

Please sign in to comment.