[[blink.cmp (Neovim)|blink.cmp]]だけではアイコンがかなりデカイので、[[nvim-highlight-colors]]みたいにスリムにしたい。 ![[Pasted image 20250405152914.png]] [[nvim-highlight-colors]]のREADMEに[設定例](https://github.com/brenoprata10/nvim-highlight-colors?tab=readme-ov-file#blinkcmp-integration)があった。 #2025/04/05 時点では、その通り実装すると、[[LSP]]からのアイコンが表示されなくなるという問題が発生する。if文を変更してあげると動くようになる。 ```diff components = { kind_icon = { text = function(ctx) local icon = ctx.kind_icon if ctx.item.source_name == "LSP" then local color_item = require("nvim-highlight-colors").format(ctx.item.documentation, { kind = ctx.kind }) - if color_item and color_item.abbr then + if color_item and color_item.abbr ~= "" then ``` 詳細は以下のプルリクを参照。 > [docs(blink.cmp): correct color display logic for LSP completion items by tadashi-aikawa · Pull Request #155 · brenoprata10/nvim-highlight-colors](https://github.com/brenoprata10/nvim-highlight-colors/pull/155)