feat(nvim): show codeium inline when cmp menu is closed

This commit is contained in:
Sergio Laín 2024-03-19 00:57:32 +01:00
parent f2c3e123c8
commit e3c1347527
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -3,7 +3,15 @@ return {
"Exafunction/codeium.vim",
event = "InsertEnter",
config = function()
local opts = { expr = true, silent = true }
local cmp = require("cmp")
cmp.event:on("menu_opened", function()
vim.g.codeium_manual = true
vim.fn["codeium#Clear"]()
end)
cmp.event:on("menu_closed", function()
vim.g.codeium_manual = false
vim.fn["codeium#Complete"]()
end)
vim.g.codeium_filetypes = {
TelescopePrompt = false,
@ -12,6 +20,7 @@ return {
["dap-repl"] = false,
}
local opts = { expr = true, silent = true }
vim.g.codeium_disable_bindings = 1
vim.keymap.set("i", "<M-CR>", function()