rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

Completion highlighting is kinda broken. #448

Closed Adomo-Software closed 2 years ago

Adomo-Software commented 2 years ago

I tested a few completion UI's and a 2 of them dont work as intended. When I'm doing completion, only first character gets highlighted, and not the rest.

For example when i type want to complete something in corfu:

image

In built-in completion ui:

image

Company. works, no problem (:

image

brotzeit commented 2 years ago

company just highlights what you typed. rust-mode highlighting works by using regular expressions. It can't predict that you intend to type a macro call. If you want different default highlighting you have to change the default face.