Skip to content

Commit c70ee8b

Browse files
Merge pull request #26 from nbfalcon/feature/highlight-deprecated-symbols
Mark deprecated symbols as such
2 parents e3c675b + ec6e4f9 commit c70ee8b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lsp-ivy.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
(forward-char character))
135135

136136
(lsp-defun lsp-ivy--format-symbol-match
137-
((&SymbolInformation :name :kind :container-name? :location (&Location :uri))
137+
((sym &as &SymbolInformation :kind :location (&Location :uri))
138138
project-root)
139139
"Convert the match returned by `lsp-mode` into a candidate string."
140140
(let* ((sanitized-kind (if (< kind (length lsp-ivy-symbol-kind-to-face)) kind 0))
@@ -145,9 +145,7 @@
145145
(pathstr (if lsp-ivy-show-symbol-filename
146146
(propertize (format " · %s" (file-relative-name (lsp--uri-to-path uri) project-root))
147147
'face font-lock-comment-face) "")))
148-
(concat typestr (if (or (null container-name?) (string-empty-p container-name?))
149-
(format "%s" name)
150-
(format "%s.%s" container-name? name)) pathstr)))
148+
(concat typestr (lsp-render-symbol-information sym ".") pathstr)))
151149

152150
(lsp-defun lsp-ivy--transform-candidate ((symbol-information &as &SymbolInformation :kind)
153151
filter-regexps? workspace-root)

0 commit comments

Comments
 (0)