emacs/var/elfeed/db/data/44/444e8a78db28d7867ed27014993e7cd542b8fdc5
2022-01-03 12:49:32 -06:00

1 line
1.9 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>I&#39;ve released on ELPA the new package <a href="https://github.com/jdtsmith/kind-icon">kind-icon</a>, which adds simple, lightweight text or monochrome icons to the prefix margin of compatible completion UI&#39;s, matching by default the font-lock colors of variables/functions/keywords/etc. Many backends like lsp-mode support the <code>:company-kind</code> completion property, which is how kind-icon determines the <em>kind</em>. Since text and icons all take up the space of precisely 3 characters, alignment is always pixel perfect.</p> <p>kind-icon is easy to set up, and works either as a &quot;margin-formatter&quot; function (for supporting UI&#39;s such as the excellent [<a href="https://github.com/minad/corfu">corfu</a>] completion front-end), or by wrapping the completion function, for other completion UI&#39;s which can handle the Emacs 28+ <code>affixation-function</code> completion property.</p> <p>An example of kind-icon in action with corfu:</p> <p><a href="https://preview.redd.it/477f31rm9r081.png?width=332&amp;format=png&amp;auto=webp&amp;s=ce8c83dba0da66842231d8ea1c42cb3ba8d4534e">kind-icon with corfu and orderless, in lsp-mode</a></p> <p>And with more than <a href="https://materialdesignicons.com">6500 icons</a> instantly configurable by name, you can easily make it your own...</p> <p><a href="https://preview.redd.it/lcqytt7epr081.png?width=298&amp;format=png&amp;auto=webp&amp;s=0faab37842e0afbaa067f8d2f4512d004dd16075">Easy configurability</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/JDRiverRun"> /u/JDRiverRun </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/qy7tsg/kindicon_colorful_margin_icons_for_completion/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/qy7tsg/kindicon_colorful_margin_icons_for_completion/">[comments]</a></span>