diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index ef1ab01d..e14bc7bb 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -1118,12 +1118,6 @@ impl Application { Ok(serde_json::Value::Null) } Ok(MethodCall::ShowMessageRequest(params)) => { - impl ui::menu::Item for lsp::MessageActionItem { - type Data = (); - fn format(&self, _data: &Self::Data) -> tui::widgets::Row { - self.title.as_str().into() - } - } if let Some(actions) = params.actions.filter(|a| !a.is_empty()) { let id = id.clone(); let select = ui::Select::new( @@ -1346,3 +1340,10 @@ impl Application { errs } } + +impl ui::menu::Item for lsp::MessageActionItem { + type Data = (); + fn format(&self, _data: &Self::Data) -> tui::widgets::Row<'_> { + self.title.as_str().into() + } +}