It makes icons also appear in the terminal
This commit is contained in:
parent
d260817105
commit
b9559eabe0
2 changed files with 177 additions and 165 deletions
305
elpaca.lock
305
elpaca.lock
File diff suppressed because it is too large
Load diff
|
|
@ -12,8 +12,16 @@
|
|||
(unbind-key "C-c & C-v" yas-minor-mode-map))
|
||||
|
||||
(use-package yasnippet-snippets :ensure t :after (yasnippet))
|
||||
(use-package company-box :ensure t :after (company)
|
||||
:hook (company-mode . company-box-mode))
|
||||
|
||||
(use-package kind-icon
|
||||
:ensure t
|
||||
:after company
|
||||
:config
|
||||
(let* ((kind-func (lambda (candidate) (company-call-backend 'kind candidate)))
|
||||
(formatter (kind-icon-margin-formatter `((company-kind . ,kind-func)))))
|
||||
(defun icejam-company-kind-icon-margin (candidate _selected)
|
||||
(funcall formatter candidate))
|
||||
(setopt company-format-margin-function #'icejam-company-kind-icon-margin)))
|
||||
|
||||
(with-eval-after-load 'company
|
||||
(global-company-mode t)
|
||||
|
|
@ -57,8 +65,7 @@
|
|||
(setopt company-backends
|
||||
'((company-files ; files & directory
|
||||
company-keywords ; keywords
|
||||
company-capf
|
||||
)
|
||||
company-capf)
|
||||
(company-dabbrev company-abbrev)
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue