branch: externals/company
commit 131e353f99b80789540c460ddd60fd35e9cf31d5
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Update the kind -> icon and -> text+face mappings
    
    Prompted by https://github.com/minad/corfu/pull/75#issuecomment-966392486
---
 company.el                        | 11 +++++++----
 icons/vscode-dark/references.svg  |  3 +++
 icons/vscode-light/references.svg | 10 ++++++++++
 3 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/company.el b/company.el
index a799b51..2080906 100644
--- a/company.el
+++ b/company.el
@@ -1535,13 +1535,14 @@ end of the match."
     (module . "symbol-namespace.svg")
     (numeric . "symbol-numeric.svg")
     (operator . "symbol-operator.svg")
-    (parameter . "symbol-parameter.svg")
     (property . "symbol-property.svg")
-    (ruler . "symbol-ruler.svg")
+    (reference . "references.svg")
     (snippet . "symbol-snippet.svg")
     (string . "symbol-string.svg")
     (struct . "symbol-structure.svg")
     (text . "symbol-key.svg")
+    (type-parameter "symbol-parameter.svg")
+    (unit . "symbol-ruler.svg")
     (value . "symbol-enumerator.svg")
     (variable . "symbol-variable.svg")
     (t . "symbol-misc.svg")))
@@ -1622,6 +1623,7 @@ end of the match."
     (class "c" font-lock-type-face)
     (color "#" success)
     (constant "c" font-lock-constant-face)
+    (constructor "c" font-lock-function-name-face)
     (enum-member "e" font-lock-builtin-face)
     (enum "e" font-lock-builtin-face)
     (field "f" font-lock-variable-name-face)
@@ -1634,13 +1636,14 @@ end of the match."
     (module "{" font-lock-type-face)
     (numeric "n" font-lock-builtin-face)
     (operator "o" font-lock-comment-delimiter-face)
-    (parameter "p" font-lock-builtin-face)
     (property "p" font-lock-variable-name-face)
-    (ruler "r" shadow)
+    (reference "r" font-lock-doc-face)
     (snippet "S" font-lock-string-face)
     (string "s" font-lock-string-face)
     (struct "%" font-lock-variable-name-face)
     (text "w" shadow)
+    (type-parameter "p" font-lock-type-face)
+    (unit "u" shadow)
     (value "v" font-lock-builtin-face)
     (variable "v" font-lock-variable-name-face)
     (t "." shadow))
diff --git a/icons/vscode-dark/references.svg b/icons/vscode-dark/references.svg
new file mode 100644
index 0000000..9e4c78e
--- /dev/null
+++ b/icons/vscode-dark/references.svg
@@ -0,0 +1,3 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" 
xmlns="http://www.w3.org/2000/svg";>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1052 4.5613L7.67505 
7.98827L6.54072 6.86834L8.61098 4.78848H3.81131C3.17483 4.78848 2.56442 5.04132 
2.11436 5.49138C1.6643 5.94144 1.41147 6.55184 1.41147 7.18832C1.41147 7.8248 
1.6643 8.43521 2.11436 8.88527C2.56442 9.33532 3.17483 9.58816 3.81131 
9.58816H4.70085V11.1881H3.8209C2.7921 11.142 1.8207 10.7009 1.10896 
9.95661C0.397222 9.21231 0 8.22216 0 7.19232C0 6.16249 0.397222 5.17234 1.10896 
4.42803C1.8207 3.68373 2.7921 3.24263 3.82 [...]
+</svg>
diff --git a/icons/vscode-light/references.svg 
b/icons/vscode-light/references.svg
new file mode 100644
index 0000000..eea62e0
--- /dev/null
+++ b/icons/vscode-light/references.svg
@@ -0,0 +1,10 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" 
xmlns="http://www.w3.org/2000/svg";>
+<g clip-path="url(#clip0)">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M11.1055 4.5613L7.67529 
7.98827L6.54097 6.86834L8.61123 4.78848H3.81155C3.17507 4.78848 2.56466 5.04132 
2.11461 5.49138C1.66455 5.94144 1.41171 6.55184 1.41171 7.18832C1.41171 7.8248 
1.66455 8.43521 2.11461 8.88527C2.56466 9.33532 3.17507 9.58816 3.81155 
9.58816H4.70109V11.1881H3.82115C2.79234 11.142 1.82094 10.7009 1.1092 
9.95661C0.397467 9.21231 0.000244141 8.22216 0.000244141 7.19232C0.000244141 
6.16249 0.397467 5.17234 1.1092 4.42803C1 [...]
+</g>
+<defs>
+<clipPath id="clip0">
+<rect width="24" height="24" fill="white" transform="translate(0.000244141)"/>
+</clipPath>
+</defs>
+</svg>

Reply via email to