We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cdb739 commit 466bf4aCopy full SHA for 466bf4a
lsp-ivy.el
@@ -137,7 +137,8 @@
137
((&SymbolInformation :name :kind :container-name? :location (&Location :uri))
138
project-root)
139
"Convert the match returned by `lsp-mode` into a candidate string."
140
- (let* ((type (elt lsp-ivy-symbol-kind-to-face kind))
+ (let* ((sanitized-kind (if (< kind (length lsp-ivy-symbol-kind-to-face)) kind 0))
141
+ (type (elt lsp-ivy-symbol-kind-to-face sanitized-kind))
142
(typestr (if lsp-ivy-show-symbol-kind
143
(propertize (format "[%s] " (car type)) 'face (cdr type))
144
""))
0 commit comments