aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/application.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-23 07:20:49 +0000
committerBlaž Hrastnik2020-12-23 07:20:49 +0000
commit56f2193811fca2fa20284442c2042fa271464445 (patch)
tree1ec99141a70b484f1fbcf0594e5aea61138cd097 /helix-term/src/application.rs
parent955cb81687db139422875d02b534d753dac5603f (diff)
Retrieve completion options on ctrl-x.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r--helix-term/src/application.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs
index e15f21c6..138f55c2 100644
--- a/helix-term/src/application.rs
+++ b/helix-term/src/application.rs
@@ -69,10 +69,15 @@ impl Application {
fn render(&mut self) {
let executor = &self.executor;
+ let language_servers = &self.language_servers;
let editor = &mut self.editor;
let compositor = &self.compositor;
- let mut cx = crate::compositor::Context { editor, executor };
+ let mut cx = crate::compositor::Context {
+ editor,
+ executor,
+ language_servers,
+ };
let area = self.terminal.size().unwrap();
compositor.render(area, self.terminal.current_buffer_mut(), &mut cx);
@@ -113,6 +118,7 @@ impl Application {
let mut cx = crate::compositor::Context {
editor: &mut self.editor,
executor: &self.executor,
+ language_servers: &self.language_servers,
};
// Handle key events
let should_redraw = match event {