mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-10 01:14:30 +02:00
add: adaptive color icon
This commit is contained in:
parent
836ac75161
commit
bbc23eae04
5 changed files with 21 additions and 11 deletions
|
@ -121,3 +121,4 @@ vim.g.pcode_indentscope = true
|
|||
vim.g.pvode_minianimate = false
|
||||
|
||||
vim.g.pcode_disable_cmpdoc = false
|
||||
vim.g.pcode_adaptive_color_icon = true
|
||||
|
|
|
@ -9,7 +9,9 @@ if vim.g.pcode_codeium_nvim then
|
|||
"Exafunction/codeium.nvim",
|
||||
cmd = "Codeium",
|
||||
build = ":Codeium Auth",
|
||||
opts = {},
|
||||
opts = {
|
||||
enable_chat = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
--@param opts cmp.ConfigSchema
|
||||
|
|
11
lua/plugins/deviconcolor.lua
Normal file
11
lua/plugins/deviconcolor.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
local M = {}
|
||||
if vim.g.pcode_adaptive_color_icon then
|
||||
M = {
|
||||
"rachartier/tiny-devicons-auto-colors.nvim",
|
||||
event = "VeryLazy",
|
||||
config = function()
|
||||
require("tiny-devicons-auto-colors").setup()
|
||||
end,
|
||||
}
|
||||
end
|
||||
return M
|
|
@ -56,12 +56,7 @@ return {
|
|||
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
|
||||
return icons.kind.Codeium
|
||||
else
|
||||
return ""
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue