|
| 1 | +return { |
| 2 | + "Exafunction/codeium.nvim", |
| 3 | + config = function() |
| 4 | + require("codeium").setup({ |
| 5 | + -- Optionally disable cmp source if using virtual text only |
| 6 | + enable_cmp_source = true, |
| 7 | + virtual_text = { |
| 8 | + enabled = true, |
| 9 | + |
| 10 | + -- These are the defaults |
| 11 | + |
| 12 | + -- Set to true if you never want completions to be shown automatically. |
| 13 | + manual = false, |
| 14 | + -- A mapping of filetype to true or false, to enable virtual text. |
| 15 | + filetypes = {}, |
| 16 | + -- Whether to enable virtual text of not for filetypes not specifically listed above. |
| 17 | + default_filetype_enabled = true, |
| 18 | + -- How long to wait (in ms) before requesting completions after typing stops. |
| 19 | + idle_delay = 75, |
| 20 | + -- Priority of the virtual text. This usually ensures that the completions appear on top of |
| 21 | + -- other plugins that also add virtual text, such as LSP inlay hints, but can be modified if |
| 22 | + -- desired. |
| 23 | + virtual_text_priority = 65535, |
| 24 | + -- Set to false to disable all key bindings for managing completions. |
| 25 | + map_keys = true, |
| 26 | + -- The key to press when hitting the accept keybinding but no completion is showing. |
| 27 | + -- Defaults to \t normally or <c-n> when a popup is showing. |
| 28 | + accept_fallback = nil, |
| 29 | + -- Key bindings for managing completions in virtual text mode. |
| 30 | + key_bindings = { |
| 31 | + -- Accept the current completion. |
| 32 | + accept = "<Tab>", |
| 33 | + -- Accept the next word. |
| 34 | + accept_word = false, |
| 35 | + -- Accept the next line. |
| 36 | + accept_line = false, |
| 37 | + -- Clear the virtual text. |
| 38 | + clear = false, |
| 39 | + -- Cycle to the next completion. |
| 40 | + next = "<M-]>", |
| 41 | + -- Cycle to the previous completion. |
| 42 | + prev = "<M-[>", |
| 43 | + } |
| 44 | + } |
| 45 | + }) |
| 46 | + end, |
| 47 | +} |
0 commit comments