Move location to trigger LanguageClientBufReadPost.
@@ -1479,6 +1479,9 @@ pub trait ILanguageClient: IVim {
)?;
self.command("setlocal omnifunc=LanguageClient#complete")?;
+ if self.get(|state| Ok(state.text_documents.contains_key(&filename)))? {
+ self.call::<_, u8>(None, "s:ExecuteAutocmd", "LanguageClientBufReadPost")?;
+ }
info!("End {}", lsp::notification::DidOpenTextDocument::METHOD);
Ok(())
@@ -1864,10 +1867,6 @@ pub trait ILanguageClient: IVim {
}
}
- if self.get(|state| Ok(state.text_documents.contains_key(&filename)))? {
- self.call::<_, u8>(None, "s:ExecuteAutocmd", "LanguageClientBufReadPost")?;
- }
-
info!("End {}", NOTIFICATION__HandleBufReadPost);
Ok(())
}
