(eglot-completion-at-point): Return correct values in :company-kind
* lisp/progmodes/eglot.el (eglot-completion-at-point): Return the correct values in :company-kind for "EnumMember" and "TypeParameter". The convention is to use kebab case rather than plain downcasing. Reported in https://github.com/company-mode/company-mode/issues/1370.
This commit is contained in:
parent
321cbd9a60
commit
2ac8c4bbd6
1 changed files with 4 additions and 1 deletions
|
@ -2873,7 +2873,10 @@ for which LSP on-type-formatting should be requested."
|
||||||
(when-let* ((lsp-item (get-text-property 0 'eglot--lsp-item proxy))
|
(when-let* ((lsp-item (get-text-property 0 'eglot--lsp-item proxy))
|
||||||
(kind (alist-get (plist-get lsp-item :kind)
|
(kind (alist-get (plist-get lsp-item :kind)
|
||||||
eglot--kind-names)))
|
eglot--kind-names)))
|
||||||
(intern (downcase kind))))
|
(pcase kind
|
||||||
|
("EnumMember" 'enum-member)
|
||||||
|
("TypeParameter" 'type-parameter)
|
||||||
|
(_ (intern (downcase kind))))))
|
||||||
:company-deprecated
|
:company-deprecated
|
||||||
(lambda (proxy)
|
(lambda (proxy)
|
||||||
(when-let ((lsp-item (get-text-property 0 'eglot--lsp-item proxy)))
|
(when-let ((lsp-item (get-text-property 0 'eglot--lsp-item proxy)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue