added icon for copilot in blink
This commit is contained in:
parent
ed7efcc18e
commit
a2ff3fa50f
@ -41,6 +41,39 @@ return {
|
||||
-- Set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
||||
-- Adjusts spacing to ensure icons are aligned
|
||||
nerd_font_variant = 'mono',
|
||||
kind_icons = {
|
||||
Copilot = '',
|
||||
Text = '',
|
||||
Method = '',
|
||||
Function = '',
|
||||
Constructor = '',
|
||||
|
||||
Field = '',
|
||||
Variable = '',
|
||||
Property = '',
|
||||
|
||||
Class = '',
|
||||
Interface = '',
|
||||
Struct = '',
|
||||
Module = '',
|
||||
|
||||
Unit = '',
|
||||
Value = '',
|
||||
Enum = '',
|
||||
EnumMember = '',
|
||||
|
||||
Keyword = '',
|
||||
Constant = '',
|
||||
|
||||
Snippet = '',
|
||||
Color = '',
|
||||
File = '',
|
||||
Reference = '',
|
||||
Folder = '',
|
||||
Event = '',
|
||||
Operator = '',
|
||||
TypeParameter = '',
|
||||
},
|
||||
},
|
||||
|
||||
-- default list of enabled providers defined so that you can extend it
|
||||
@ -63,6 +96,15 @@ return {
|
||||
module = 'blink-cmp-copilot',
|
||||
score_offset = 100,
|
||||
async = true,
|
||||
transform_items = function(_, items)
|
||||
local CompletionItemKind = require('blink.cmp.types').CompletionItemKind
|
||||
local kind_idx = #CompletionItemKind + 1
|
||||
CompletionItemKind[kind_idx] = 'Copilot'
|
||||
for _, item in ipairs(items) do
|
||||
item.kind = kind_idx
|
||||
end
|
||||
return items
|
||||
end,
|
||||
},
|
||||
lazydev = {
|
||||
name = 'LazyDev',
|
||||
|
Loading…
x
Reference in New Issue
Block a user