feat: resolve merge conflicts
This commit is contained in:
parent
c2e24a44ac
commit
f29f336c4d
1 changed files with 13 additions and 22 deletions
|
@ -68,20 +68,6 @@ impl menu::Item for CompletionItem {
|
|||
CompletionItem::Other(core::CompletionItem { label, .. }) => label,
|
||||
};
|
||||
|
||||
let first_cell = menu::Cell::from(Span::styled(
|
||||
label,
|
||||
if deprecated {
|
||||
Style::default().add_modifier(Modifier::CROSSED_OUT)
|
||||
} else if kind.stuff == "folder" {
|
||||
*dir_style
|
||||
} else {
|
||||
Style::default()
|
||||
},
|
||||
));
|
||||
|
||||
menu::Row::new([first_cell, menu::Cell::from(kind)])
|
||||
|
||||
|
||||
let kind = match self {
|
||||
CompletionItem::Lsp(LspCompletionItem { item, .. }) => match item.kind {
|
||||
Some(lsp::CompletionItemKind::TEXT) => "text".into(),
|
||||
|
@ -133,15 +119,20 @@ impl menu::Item for CompletionItem {
|
|||
},
|
||||
CompletionItem::Other(core::CompletionItem { kind, .. }) => Span::raw(kind.to_string()),
|
||||
};
|
||||
|
||||
let first_cell = menu::Cell::from(Span::styled(
|
||||
label,
|
||||
if deprecated {
|
||||
Style::default().add_modifier(Modifier::CROSSED_OUT)
|
||||
} else if kind.content == "folder" {
|
||||
*dir_style
|
||||
} else {
|
||||
Style::default()
|
||||
},
|
||||
));
|
||||
|
||||
menu::Row::new([
|
||||
menu::Cell::from(Span::styled(
|
||||
label,
|
||||
if deprecated {
|
||||
Style::default().add_modifier(Modifier::CROSSED_OUT)
|
||||
} else {
|
||||
Style::default()
|
||||
},
|
||||
)),
|
||||
first_cell,
|
||||
if kind.content == "■" {
|
||||
menu::Cell::from(Spans::from(vec![Span::raw("color "), kind]))
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue