mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(neovim): Remove Codeium AI autocomplete shit
This commit is contained in:
@@ -1,44 +1 @@
|
|||||||
return {
|
return {}
|
||||||
{
|
|
||||||
"saghen/blink.compat",
|
|
||||||
lazy = true,
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- codeium
|
|
||||||
{
|
|
||||||
"Exafunction/codeium.nvim",
|
|
||||||
cond = require("config.util").is_not_vscode(),
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
cmd = "Codeium",
|
|
||||||
build = ":Codeium Auth",
|
|
||||||
event = "InsertEnter",
|
|
||||||
opts = {
|
|
||||||
-- TODO: Get all sources.default on blink.nvim and add "codeium" to the list
|
|
||||||
-- TODO: Get all sources.providers registered on blink.nvim and append "codeium" to it here
|
|
||||||
enable_cmp_source = true,
|
|
||||||
virtual_text = {
|
|
||||||
enabled = false,
|
|
||||||
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,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
"rafamadriz/friendly-snippets",
|
"rafamadriz/friendly-snippets",
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
"Exafunction/codeium.nvim",
|
|
||||||
"kristijanhusak/vim-dadbod-completion",
|
"kristijanhusak/vim-dadbod-completion",
|
||||||
"moyiz/blink-emoji.nvim",
|
"moyiz/blink-emoji.nvim",
|
||||||
"disrupted/blink-cmp-conventional-commits",
|
"disrupted/blink-cmp-conventional-commits",
|
||||||
@@ -116,7 +115,6 @@ return {
|
|||||||
"buffer",
|
"buffer",
|
||||||
"path",
|
"path",
|
||||||
"snippets",
|
"snippets",
|
||||||
-- "codeium",
|
|
||||||
},
|
},
|
||||||
per_filetype = {
|
per_filetype = {
|
||||||
sql = { "snippets", "dadbod", "buffer" },
|
sql = { "snippets", "dadbod", "buffer" },
|
||||||
@@ -125,11 +123,6 @@ return {
|
|||||||
},
|
},
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
-- codeium = {
|
|
||||||
-- name = "codeium", -- Cause it's registered on nvim-cmp as "codeium"
|
|
||||||
-- module = "blink.compat.source",
|
|
||||||
-- score_offset = 600,
|
|
||||||
-- },
|
|
||||||
conventional_commits = {
|
conventional_commits = {
|
||||||
name = "Conventional Commits",
|
name = "Conventional Commits",
|
||||||
module = "blink-cmp-conventional-commits",
|
module = "blink-cmp-conventional-commits",
|
||||||
|
|||||||
Reference in New Issue
Block a user