@@ -15,8 +15,6 @@ use crate::ui::{self, Popup, Prompt, PromptEvent};
1515
1616use std::path::PathBuf;
1717
18−use smol::Executor;
19−
2018use helix_view::{
2119 document::Mode,
2220 view::{View, PADDING},
@@ -853,6 +851,7 @@ pub fn exit_select_mode(cx: &mut Context) {
853851}
854852
855853fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
854+ let executor = cx.executor;
856855 let doc = cx.doc();
857856
858857 doc.mode = Mode::Normal;
@@ -876,7 +875,6 @@ fn goto(cx: &mut Context, locations: Vec<lsp::Location>) {
876875 format!("{}:{}", file, line).into()
877876 },
878877 move |editor: &mut Editor, item| {
879− let executor = smol::Executor::new();
880878 editor.open(PathBuf::from(item.uri.path()), &executor);
881879 let mut doc = &mut editor.view_mut().doc;
882880 let definition_pos = item.range.start;