summaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-14 08:13:55 +0000
committerBlaž Hrastnik2021-03-14 08:14:34 +0000
commitbb87b08fc9677ddf0f083a2297c23c17144470e2 (patch)
treeccbd0124469f4b50ed423af9b8ef328420bd68e7 /helix-view/src/editor.rs
parent1cf887dea93f7aa2184772fa2073751f031c5bf3 (diff)
Configure language servers via LanguageConfiguration.
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index c072d76f..01a2dac5 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -39,7 +39,8 @@ impl Editor {
// try to find a language server based on the language name
let language_server = doc
- .language()
+ .language
+ .as_ref()
.and_then(|language| self.language_servers.get(language, &executor));
if let Some(language_server) = language_server {