Saghen / blink.cmp

Performant, batteries-included completion plugin for Neovim
MIT License
632 stars 27 forks source link

Invalid highlight name: 'BlinkCmpKindT Text' #17

Closed BingCoke closed 1 day ago

BingCoke commented 3 days ago
image
aerosol commented 3 days ago
E5248: Invalid character in group name                                                                                                                           
Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:94: Invalid highlight name: 'BlinkCmpKind󰉿 Text'          
stack traceback:                                                                                                                                                 
        [C]: in function 'nvim_set_hl'                                                                                                                           
        .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:94: in function 'set_hl'                                                                     
        .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:102: in function 'add_default_highlights'                                                    
        .../.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/init.lua:14: in function 'callback'                                                                   
        ...are/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/download.lua:17: in function <...are/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/download.lua:17>       
strayer commented 3 days ago

For me this is related to lspkind. Commenting out this line in my config fixes the error in my case.

dsully commented 3 days ago

It may also be related to mini.icons if you're calling icons.tweak_lsp_kind("prepend"), which modifies the vim.lsp.protocol.CompletionItemKind table.

MagicDuck commented 2 days ago

same issue here. As soon as I comment out lspkind plugin, the issue goes away:

  -- {
  --   'onsails/lspkind-nvim',
  --   lazy = true,
  --   event = { 'BufReadPre', 'BufNewFile', 'VeryLazy' },
  --   config = function()
  --     require('lspkind').init()
  --   end,
  -- },