✨ 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
|
-- Personal Config and LazyVim global options
|
||||||
go.lualine_info_extras = false
|
go.lualine_info_extras = false
|
||||||
|
go.codeium_cmp_hide = false
|
||||||
go.lazyvim_statuscolumn.folds_open = true
|
go.lazyvim_statuscolumn.folds_open = true
|
||||||
go.lazyvim_statuscolumn.folds_githl = true
|
go.lazyvim_statuscolumn.folds_githl = true
|
||||||
go.lazygit_config = false
|
go.lazygit_config = false
|
||||||
|
|
|
@ -3,6 +3,7 @@ return {
|
||||||
"Exafunction/codeium.vim",
|
"Exafunction/codeium.vim",
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
config = function()
|
||||||
|
if vim.g.codeium_cmp_hide == true then
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
cmp.event:on("menu_opened", function()
|
cmp.event:on("menu_opened", function()
|
||||||
vim.g.codeium_manual = true
|
vim.g.codeium_manual = true
|
||||||
|
@ -12,6 +13,7 @@ return {
|
||||||
vim.g.codeium_manual = false
|
vim.g.codeium_manual = false
|
||||||
vim.fn["codeium#Complete"]()
|
vim.fn["codeium#Complete"]()
|
||||||
end)
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
vim.g.codeium_filetypes = {
|
vim.g.codeium_filetypes = {
|
||||||
TelescopePrompt = false,
|
TelescopePrompt = false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue