GNU ELPA - kind-icon

kind-icon

Description
Completion kind icons
Latest
kind-icon-0.2.2.tar (.sig), 2024-Mar-31, 70.0 KiB
Maintainer
J.D. Smith <jdtsmith@gmail.com>
Atom feed
kind-icon.xml
Website
https://github.com/jdtsmith/kind-icon
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

kind-icon-mode adds an colorful icon or text prefix based on
:company-kind for compatible completion UI's.  The "kind" prefix is
typically used for differentiating completion candidates such as
variables, functions, etc.  It works in one of 2 ways:

 1. For UI's with "margin-formatters" capability, simply add
    `kind-icon-margin-formatter` to the margin formatter list.

 2. For UI's without a margin-formatters but which support
    "affixation functions" (an Emacs 28 and later completion
    property), use `kind-icon-enhance-completion' to wrap the
    normal completion-in-region-function.  E.g. (in the completion
    mode's hook):

    (setq completion-in-region-function
       (kind-icon-enhance-completion completion-in-region-function)

 3. If your UI supports neither margin-formatters nor affixation
    functions, ask them to do so!

Note that icon support requires svg-lib to be installed.

The `kind-icon-formatted' function creates, styles, and caches a
short-text or icon-based "badge" representing the kind of the
candidate.  Icons are by default loaded remotely from the
"material" library provided by svg-lib, which is required (unless
only short-text badges are desired, see `kind-icon-use-icons').
Customize `kind-icon-mapping' to configure mapping between kind and
both short-text and icons.

Old versions

kind-icon-0.2.1.tar.lz2023-Nov-2619.9 KiB
kind-icon-0.2.0.tar.lz2023-Mar-0219.3 KiB
kind-icon-0.1.9.tar.lz2022-Nov-2419.0 KiB
kind-icon-0.1.8.tar.lz2022-Nov-2318.9 KiB
kind-icon-0.1.7.tar.lz2022-Sep-0918.8 KiB
kind-icon-0.1.6.tar.lz2022-Jun-1218.8 KiB
kind-icon-0.1.5.tar.lz2022-Mar-2717.9 KiB
kind-icon-0.1.4.tar.lz2021-Dec-1917.9 KiB
kind-icon-0.1.3.tar.lz2021-Dec-1017.9 KiB
kind-icon-0.1.1.tar.lz2021-Nov-1917.9 KiB