feat(nvim): show codeium inline when cmp menu is closed
This commit is contained in:
1 parent
5ee27a7dfc
commit
ca8d3aa4ea
1 file changed
+10
-1
@@ -3,7 +3,15 @@ return {
|
|||||||
"Exafunction/codeium.vim",
|
"Exafunction/codeium.vim",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
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 = {
|
vim.g.codeium_filetypes = {
|
||||||
TelescopePrompt = false,
|
TelescopePrompt = false,
|
||||||
@@ -12,6 +20,7 @@ return {
|
|||||||
["dap-repl"] = false,
|
["dap-repl"] = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local opts = { expr = true, silent = true }
|
||||||
vim.g.codeium_disable_bindings = 1
|
vim.g.codeium_disable_bindings = 1
|
||||||
|
|
||||||
vim.keymap.set("i", "<M-CR>", function()
|
vim.keymap.set("i", "<M-CR>", function()
|
||||||
|
|||||||
Reference in new issue
Block a user