Open dizzib opened 1 week ago
Colors are not highlighted in flutter/dart code, I guess because format item.kind is Field and not Color:
item.kind
Field
Color
My cmp config:
formatting = { format = function(entry, item) local color_item = require("nvim-highlight-colors").format( entry, { kind = item.kind } ) item = require("lspkind").cmp_format({ mode = 'symbol_text', -- show only symbol annotations maxwidth = 50, ellipsis_char = '...', show_labelDetails = true, })(entry, item) if color_item.abbr_hl_group then item.kind_hl_group = color_item.abbr_hl_group item.kind = color_item.abbr end -- dedupe: https://github.com/hrsh7th/nvim-cmp/issues/32 item.dup = ({ buffer = 1, path = 1, nvim_lsp = 0, })[entry.source.name] or 0 return item end },
Colors are not highlighted in flutter/dart code, I guess because format
item.kind
isField
and notColor
:My cmp config: