Syntax highlight even when the label doesn't contain a detail
This commit is contained in:
parent
8fc89da573
commit
d246a39b57
2 changed files with 31 additions and 5 deletions
|
@ -342,7 +342,7 @@ impl Grammar {
|
|||
}
|
||||
|
||||
impl CompletionLabel {
|
||||
fn plain(completion: &lsp::CompletionItem) -> Self {
|
||||
pub fn plain(completion: &lsp::CompletionItem) -> Self {
|
||||
let mut result = Self {
|
||||
text: completion.label.clone(),
|
||||
runs: Vec::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue