mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
fix(nvim): Disable codeium auto-completions when codeium fails to
install - Codeium installs a pre-compiled "server" binary - incompatible with FreeBSD. So, this fix would disable codeium auto-completions when it could not install the binary
This commit is contained in:
@@ -7,9 +7,26 @@ return {
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"saghen/blink.compat",
|
||||
opts = {
|
||||
enable_events = true,
|
||||
},
|
||||
opts = function()
|
||||
-- Do NOT use if codeium is not loaded
|
||||
local codeium_loaded, _ = pcall(require, "codeium")
|
||||
if not codeium_loaded then
|
||||
return {}
|
||||
end
|
||||
return {
|
||||
enable_events = true,
|
||||
sources = {
|
||||
providers = {
|
||||
codeium = {
|
||||
name = "codeium",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 1200,
|
||||
async = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
},
|
||||
cmd = "Codeium",
|
||||
|
||||
@@ -105,7 +105,6 @@ return {
|
||||
"snippets",
|
||||
"luasnip",
|
||||
"path",
|
||||
"codeium",
|
||||
"markdown",
|
||||
},
|
||||
cmdline = {},
|
||||
@@ -131,11 +130,6 @@ return {
|
||||
path = {
|
||||
score_offset = 750,
|
||||
},
|
||||
codeium = {
|
||||
name = "codeium",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 1200,
|
||||
},
|
||||
markdown = {
|
||||
name = "RenderMarkdown",
|
||||
module = "render-markdown.integ.blink",
|
||||
|
||||
Reference in New Issue
Block a user