mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
- Codeium made to work with help from blink.compat - Blink added to lsp capabilities - Catppuccin theme integration for blink
45 lines
1.3 KiB
Lua
45 lines
1.3 KiB
Lua
return {
|
|
-- codeium
|
|
{
|
|
"Exafunction/codeium.nvim",
|
|
cond = require("config.util").is_not_vscode(),
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
{
|
|
"saghen/blink.compat",
|
|
opts = {
|
|
enable_events = true,
|
|
},
|
|
},
|
|
},
|
|
cmd = "Codeium",
|
|
build = ":Codeium Auth",
|
|
event = "InsertEnter",
|
|
opts = {
|
|
enable_cmp_source = vim.g.ai_cmp,
|
|
virtual_text = {
|
|
enabled = not vim.g.ai_cmp,
|
|
key_bindings = {
|
|
accept = false, -- handled by nvim-cmp / blink.cmp
|
|
next = "<M-]>",
|
|
prev = "<M-[>",
|
|
},
|
|
},
|
|
},
|
|
config = function()
|
|
-- Setup basic configuration
|
|
require("codeium").setup({})
|
|
|
|
vim.keymap.set("n", "<leader>aa", function()
|
|
vim.cmd("Codeium Enable")
|
|
vim.notify("Codeium enabled", vim.log.levels.INFO)
|
|
end, { desc = "Enable Codeium" })
|
|
|
|
vim.keymap.set("n", "<leader>ax", function()
|
|
vim.cmd("Codeium Disable")
|
|
vim.notify("Codeium disabled", vim.log.levels.INFO)
|
|
end, { desc = "Disable Codeium" })
|
|
end,
|
|
},
|
|
}
|