Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

company-box-icons-all-the-icons: replace and fill all icons #132

Merged
merged 1 commit into from
Sep 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions company-box-icons.el
Original file line number Diff line number Diff line change
Expand Up @@ -206,34 +206,33 @@
(fboundp 'all-the-icons-octicon))
;; TODO: fix the rest
(defvar company-box-icons-all-the-icons
`((Unknown . ,(all-the-icons-faicon "cog"))
(Text . ,(all-the-icons-octicon "file-text"))
`((Unknown . ,(all-the-icons-faicon "code"))
(Text . ,(all-the-icons-material "text_format"))
(Method . ,(all-the-icons-faicon "cube"))
(Function . ,(all-the-icons-faicon "cube"))
(Constructor . ,(all-the-icons-faicon "cube"))
(Field . ,(all-the-icons-faicon "cog"))
(Variable . ,(all-the-icons-faicon "cog"))
(Field . ,(all-the-icons-faicon "tag"))
(Variable . ,(all-the-icons-faicon "tag"))
(Class . ,(all-the-icons-faicon "cogs"))
;; (Interface . ,(company-box-icons-image "Interface.png"))
(Module . ,(all-the-icons-alltheicon "less"))
(Interface . ,(all-the-icons-faicon "italic"))
(Module . ,(all-the-icons-faicon "code"))
(Property . ,(all-the-icons-faicon "wrench"))
;; (Unit . ,(company-box-icons-image "Misc.png"))
;; (Value . ,(company-box-icons-image "EnumItem.png"))
(Enum . ,(all-the-icons-material "content_copy"))
;; (Keyword . ,(company-box-icons-image "Keyword.png"))
(Snippet . ,(all-the-icons-material "content_paste"))
(Unit . ,(all-the-icons-material "streetview"))
(Value . ,(all-the-icons-faicon "tag"))
(Enum . ,(all-the-icons-material "library_books"))
(Keyword . ,(all-the-icons-material "vpn_key"))
(Snippet . ,(all-the-icons-faicon "expand"))
(Color . ,(all-the-icons-material "palette"))
(File . ,(all-the-icons-faicon "file"))
;; (Reference . ,(company-box-icons-image "Misc.png"))
(Folder . ,(all-the-icons-faicon "folder"))
;; (EnumMember . ,(company-box-icons-image "EnumItem.png"))
;; (Constant . ,(company-box-icons-image "Constant.png"))
(Reference . ,(all-the-icons-material "streetview"))
(Folder . ,(all-the-icons-faicon "folder-open"))
(EnumMember . ,(all-the-icons-faicon "book"))
(Constant . ,(all-the-icons-faicon "bars"))
(Struct . ,(all-the-icons-faicon "cogs"))
(Event . ,(all-the-icons-faicon "bolt"))
;; (Operator . ,(company-box-icons-image "Misc.png"))
(Operator . ,(all-the-icons-material "streetview"))
(TypeParameter . ,(all-the-icons-faicon "cogs"))
;; (Template . ,(company-box-icons-image "Template.png"))
)))
(Template . ,(all-the-icons-material "settings_ethernet")))))

(defcustom company-box-icons-alist 'company-box-icons-images
"Rendering method for icons.
Expand Down Expand Up @@ -362,7 +361,8 @@ Check out `cider-completion-annotations-alist'.")
(cond ((fboundp sym) 'Function)
((featurep sym) 'Module)
((facep sym) 'Color)
((boundp sym) 'Variable)))))
((boundp sym) 'Variable)
(t 'Unknown)))))

(defun company-box-icons--yasnippet (candidate)
(when (get-text-property 0 'yas-annotation candidate)
Expand Down