|
| 1 | +*codeium.txt* Codeium |
| 2 | + |
| 3 | +GETTING STARTED *codeium* |
| 4 | + |
| 5 | +Run the `:Codeium Auth` command to login to Codeium. This is required to |
| 6 | +enable the plugin. |
| 7 | + |
| 8 | +Once logged in, suggested completions will be displayed inline as virtual |
| 9 | +text. You can insert a completion by pressing <Tab>. |
| 10 | + |
| 11 | +COMMANDS *:Codeium* |
| 12 | + |
| 13 | + *:Codeium_Auth* |
| 14 | +:Codeium Auth Authenticate to Codeium. |
| 15 | + |
| 16 | + *:Codeium_Disable* |
| 17 | +:Codeium Disable Disable Codeium completions |
| 18 | + |
| 19 | + *:Codeium_Enable* |
| 20 | +:Codeium Enable Re-enable Codeium completions after running :Codeium Disable |
| 21 | + |
| 22 | + *:Codeium_DisableBuffer* |
| 23 | +:Codeium DisableBuffer Disable Codeium completions in the current buffer only. |
| 24 | + |
| 25 | + *:Codeium_EnableBuffer* |
| 26 | +:Codeium EnableBuffer Re-eisable Codeium completions in the current |
| 27 | + buffer after running :Codeium DisableBuffer |
| 28 | + |
| 29 | + |
| 30 | +OPTIONS *codeium-options* |
| 31 | + |
| 32 | + *g:codeium_filetypes* |
| 33 | +g:codeium_filetypes A dictionary mapping whether codeium should be |
| 34 | + enabled or disabled in certain filetypes. This can |
| 35 | + be used to opt out of completions for certain filetypes. |
| 36 | +> |
| 37 | + let g:codeium_filetypes = { |
| 38 | + \ 'bash': v:false, |
| 39 | + \ 'typescript': v:true, |
| 40 | + \ } |
| 41 | +< |
| 42 | + |
| 43 | + *g:codeium_filetypes* |
| 44 | +g:codeium_enabled A global boolean flag that controls whether codeium |
| 45 | + completions are enabled or disabled by default. |
| 46 | +> |
| 47 | + let g:codeium_enabled = v:true |
| 48 | +< |
| 49 | + |
| 50 | +MAPS *codeium-maps* |
| 51 | + |
| 52 | + *codeium-i_<Tab>* |
| 53 | +Codeium.vim defaults to using the <Tab> key to insert the current |
| 54 | +suggestion. If there is no suggestion display, the <Tab> key will fallback |
| 55 | +to any existing <Tab> mapping you have. |
| 56 | + |
| 57 | +Other Maps ~ |
| 58 | + |
| 59 | + *codeium-i_CTRL-]* |
| 60 | +<C-]> Dismiss the current suggestion. |
| 61 | +<Plug>(codeium-dismiss) |
| 62 | + |
| 63 | + *codeium-i_ALT-]* |
| 64 | +<M-]> Cycle to the next suggestion. |
| 65 | +<Plug>(codeium-next) |
| 66 | + |
| 67 | + *codeium-i_ALT-[* |
| 68 | +<M-[> Cycle to the previous suggestion. |
| 69 | +<Plug>(codeium-previous) |
| 70 | + |
| 71 | +SYNTAX HIGHLIGHTING *codeium-highlighting* |
| 72 | + |
| 73 | +Inline suggestions are highlighted using the CodeiumSuggestion group, |
| 74 | +which defaults to a gray color. You can configure this highlight group for |
| 75 | +your colorscheme in after/colors/<colorschemename>.vim in your |
| 76 | +'runtimepath' (e.g., ~/.config/nvim/after/colors/solarized.vim). Example |
| 77 | +declaration: |
| 78 | +> |
| 79 | + highlight CodeiumSuggestion guifg=#555555 ctermfg=8 |
| 80 | +< |
| 81 | + vim:tw=78:et:ft=help:norl: |
0 commit comments