✨ feat(nvim): hide codeium when cmp is opened based on a global boolean
This commit is contained in:
parent
a490b0e282
commit
ce99f78d13
2 changed files with 12 additions and 9 deletions
|
@ -6,6 +6,7 @@ vim.loader.enable()
|
|||
|
||||
-- Personal Config and LazyVim global options
|
||||
go.lualine_info_extras = false
|
||||
go.codeium_cmp_hide = false
|
||||
go.lazyvim_statuscolumn.folds_open = true
|
||||
go.lazyvim_statuscolumn.folds_githl = true
|
||||
go.lazygit_config = false
|
||||
|
|
|
@ -3,15 +3,17 @@ return {
|
|||
"Exafunction/codeium.vim",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
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)
|
||||
if vim.g.codeium_cmp_hide == true then
|
||||
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)
|
||||
end
|
||||
|
||||
vim.g.codeium_filetypes = {
|
||||
TelescopePrompt = false,
|
||||
|
|
Loading…
Add table
Reference in a new issue