mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: codeium config
This commit is contained in:
parent
8677303d6d
commit
a0c81f7286
10 changed files with 308 additions and 234 deletions
|
@ -51,6 +51,35 @@ return {
|
|||
cond = hide_in_width,
|
||||
},
|
||||
|
||||
codeium = {
|
||||
function()
|
||||
if vim.g.pcode_codeium then
|
||||
local codeium = all_trim(vim.api.nvim_call_function("codeium#GetStatusString", {}))
|
||||
if codeium then
|
||||
-- return " " .. all_trim(codeium)
|
||||
if codeium == "OFF" then
|
||||
return icons.kind.CopilotOff
|
||||
else
|
||||
return icons.kind.Copilot
|
||||
end
|
||||
else
|
||||
return ""
|
||||
end
|
||||
else
|
||||
return ""
|
||||
end
|
||||
end,
|
||||
color = function()
|
||||
if vim.g.pcode_codeium then
|
||||
local codeium = all_trim(vim.api.nvim_call_function("codeium#GetStatusString", {}))
|
||||
return { fg = codeium == "OFF" and "#3E4452" or "#50fa7b" }
|
||||
else
|
||||
return {}
|
||||
end
|
||||
end,
|
||||
cond = hide_in_width,
|
||||
},
|
||||
|
||||
-- Lsp info
|
||||
lsp_info = {
|
||||
function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue