manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.36k stars 197 forks source link

Make completion detail_label for rust more friendly #928

Closed eval-exec closed 2 months ago

eval-exec commented 2 months ago

This Pr want to make completion detail_label for rust more friendly.

Before this PR: image

After this PR:

image

manateelazycat commented 2 months ago

Thanks.

manateelazycat commented 2 months ago

这个PR会引入 https://github.com/manateelazycat/lsp-bridge/issues/935 这个问题。

我用正则重写了这个优化 https://github.com/manateelazycat/lsp-bridge/commit/b00ffd36ce147c13a9cbb6dda75f10fc112d2279

用索引的方式兼容性不太好