From a2ff3fa50f838a08dd7925a37587190231beecd6 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 7 Jan 2025 09:32:52 +0000 Subject: [PATCH] added icon for copilot in blink --- lua/plugins/blink.lua | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 896bf20..b58a6ae 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -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',