GitHub - sebastiencs/company-box: A company front-end with icons
source link: https://github.com/sebastiencs/company-box
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
company-box
A company front-end with icons.
Differences with the built-in front-end:
- Differents colors for differents backends.
- Icons associated to functions/variables/.. and their backends
- Display candidate's documentation (support
quickhelp-string
) - Not limited by the current window size, buffer's text properties, .. (it's better than you might think)
This package requires emacs 26.
Also, not compatible with emacs in a tty.
Installation
;; With use-package: (use-package company-box :hook (company-mode . company-box-mode)) ;; Or: (require 'company-box) (add-hook 'company-mode-hook 'company-box-mode)
To customize:M-x customize-group [RET] company-box [RET]
Backends colors
See the docstring of the variable company-box-backends-colors
:C-h v company-box-backends-colors
Icons
See the variable company-box-icons-functions
For now, there are customs icons for 3 backends only: company-lsp
, company-elisp
and company-yasnippet
.
You can customize their icons with the variables:company-next-icons-lsp
, company-next-icons-elisp
and company-next-icons-yasnippet
Notes:
By default, images are used to display icons.
You can also use font icons
With images, you can't change icons colors
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK