[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 7ea8b98 3/5: (margin): Rename unicode to text i
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 7ea8b98 3/5: (margin): Rename unicode to text in unicode-margin functions |
Date: |
Wed, 31 Mar 2021 12:57:09 -0400 (EDT) |
branch: externals/company
commit 7ea8b98e433d16e42ecdff32e0b12642b4331154
Author: Mohsin Kaleem <mohkale@kisara.moe>
Commit: Mohsin Kaleem <mohkale@kisara.moe>
(margin): Rename unicode to text in unicode-margin functions
---
company.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/company.el b/company.el
index 3f85908..2da714f 100644
--- a/company.el
+++ b/company.el
@@ -1448,7 +1448,7 @@ end of the match."
candidate
selected))
-(defvar company-unicode-icons-mapping
+(defvar company-text-icons-mapping
'((array . "Α")
(boolean . "β")
(class . "γ")
@@ -1477,17 +1477,17 @@ end of the match."
(struct . "Χ")
(variable . "ѱ")))
-(defun company-unicode-icons-margin (candidate selected)
+(defun company-text-icons-margin (candidate selected)
"Margin function which returns unicode icons."
(when-let ((candidate candidate)
(kind (company-call-backend 'kind candidate))
- (icon (alist-get kind company-unicode-icons-mapping)))
+ (icon (alist-get kind company-text-icons-mapping)))
(propertize icon
'face (if selected
'company-tooltip-selection
'company-tooltip))))
-(defun company-unicode-or-vscode-icons-margin (candidate selected)
+(defun company-detect-icons-margin (candidate selected)
"Margin function which picks from vscodes icons or unicode icons
based on `display-graphic-p'."
(if (display-graphic-p)
@@ -1495,7 +1495,7 @@ based on `display-graphic-p'."
(cl-case (frame-parameter nil 'background-mode)
('light (company-vscode-light-icons-margin candidate selected))
(t (company-vscode-dark-icons-margin candidate selected)))
- (company-unicode-icons-margin candidate selected)))
+ (company-text-icons-margin candidate selected)))
(defcustom company-format-margin-function nil
"Function to format the margin.