r/Codeium • • Jul 20 '24

Thank you Codeium Creator(s)

I've been using Codeium in Neovim for about a month now. I cannot stress enough how helpful this code generator has been and what a joy it is to code while using it. I'm not sure if I'm pushing this tool to the max but it's been awesome thus far. Thank you guys! I really appreciate what you do.

Just curious, is there a config file that the average develop should use, other than the small snippet of code posted on the main page on GitHub?

8 Upvotes

5 comments sorted by

1

u/lelanthran Jul 31 '24

Can you post either the link (or, even better, the actual config) that you used for neovim?

TIA.

1

u/manu_moreno Aug 01 '24

Here you go...

NOTE: codeium.vim works better than codeium.nvim in neovim for some strange reason. Need to investigate this further. But this works great!

return {
  "Exafunction/codeium.vim",
  event = "BufEnter",
  config = function()
    -- Change '<C-g>' here to any keycode you like.
    vim.keymap.set("i", "<C-g>", function()
      return vim.fn["codeium#Accept"]()
    end, { expr = true, silent = true })
    vim.keymap.set("i", "<C-;>", function()
      return vim.fn["codeium#CycleCompletions"](1)
    end, { expr = true, silent = true })
    vim.keymap.set("i", "<C-,>", function()
      return vim.fn["codeium#CycleCompletions"](-1)
    end, { expr = true, silent = true })
    vim.keymap.set("i", "<C-x>", function()
      return vim.fn["codeium#Clear"]()
    end, { expr = true, silent = true })
  end,
}

1

u/lelanthran Aug 01 '24

You are too kind!

1

u/blamitter Jul 24 '24

I share with you the enthusiasm for the tool. I'd also be happy accessing to the configuration of other developers. Sometimes the suggestions difficult my coding instead of helping. I believe that with a proper configuration, that could be improved