Skip to content

Commit

Permalink
Prefer nerd-icons-corfu instead of kind-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0210 committed Jul 21, 2024
1 parent 2b83491 commit f9c4a90
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@
[submodule "inheritenv"]
path = lib/inheritenv
url = https://github.com/purcell/inheritenv
[submodule "kind-icon"]
path = lib/kind-icon
url = https://github.com/jdtsmith/kind-icon
[submodule "llama"]
path = lib/llama
url = https://git.sr.ht/~tarsius/llama
Expand Down
13 changes: 2 additions & 11 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,9 @@
(add-to-list 'completion-at-point-functions #'cape-elisp-block)
(advice-add 'eglot-completion-at-point :around #'cape-wrap-buster))

(use-package kind-icon
(use-package nerd-icons-corfu
:after corfu
:custom
(kind-icon-default-face 'corfu-default)
:config
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter)
(when (eq system-type 'windows-nt)
(plist-put kind-icon-default-style :height 0.8))
(when (eq system-type 'gnu/linux)
(plist-put kind-icon-default-style :height 0.7))
(when (fboundp 'reapply-themes)
(advice-add 'reapply-themes :after 'kind-icon-reset-cache)))
:init (add-to-list 'corfu-margin-formatters #'nerd-icons-corfu-formatter))

(use-package yasnippet
:diminish yas-minor-mode
Expand Down
1 change: 0 additions & 1 deletion lib/kind-icon
Submodule kind-icon deleted from b20689

0 comments on commit f9c4a90

Please sign in to comment.