1 line
1.9 KiB
Plaintext
1 line
1.9 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I'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'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 "margin-formatter" function (for supporting UI'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'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&format=png&auto=webp&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&format=png&auto=webp&s=0faab37842e0afbaa067f8d2f4512d004dd16075">Easy configurability</a></p> </div><!-- SC_ON -->   submitted by   <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>   <span><a href="https://www.reddit.com/r/emacs/comments/qy7tsg/kindicon_colorful_margin_icons_for_completion/">[comments]</a></span> |