Skip to content

Commit cf22920

Browse files
authored
create a new face for xref items to make it customizable (#3988)
1 parent b489dae commit cf22920

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lsp-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,11 @@ must be used for handling a particular message.")
986986
"Face used for highlighting symbols being written to."
987987
:group 'lsp-mode)
988988

989+
(defface lsp-face-xref-items
990+
'((t :inherit highlight))
991+
"Face used for highlighting xref items."
992+
:group 'lsp-mode)
993+
989994
(define-obsolete-variable-alias 'lsp-lens-auto-enable
990995
'lsp-lens-enable "lsp-mode 7.0.1")
991996

@@ -5039,7 +5044,7 @@ identifier and the position respectively."
50395044
(len (length line)))
50405045
(add-face-text-property (max (min start-char len) 0)
50415046
(max (min end-char len) 0)
5042-
'highlight t line)
5047+
'lsp-face-xref-items t line)
50435048
;; LINE is nil when FILENAME is not being current visited by any buffer.
50445049
(xref-make (or line filename)
50455050
(xref-make-file-location

0 commit comments

Comments
 (0)