Skip to content

Commit 7d75306

Browse files
authored
Merge pull request #11 from georgiy-belyanin/fix-config-loading
fix loading configurations in NeoVim
2 parents f4c1932 + 4d47e8d commit 7d75306

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
`CHG` refactor `template system`, optimize the generic infer
66

7+
`FIX` now configurations are loaded properly in NeoVim in cases when no extra LSP configuration parameters are provided
8+
79
# 0.3.3
810

911
`NEW` Add Develop Guide

crates/emmylua_ls/src/handlers/initialized/client_config/neovim_config.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ pub async fn get_client_config_neovim(
2121
let cancel_token = time_cancel_token(Duration::from_secs(5));
2222
let configs = client
2323
.get_configuration::<Value>(params, cancel_token)
24-
.await?;
24+
.await?
25+
.into_iter()
26+
.filter(|config| !config.is_null())
27+
.collect();
2528

2629
if let Some(pretty_json) = serde_json::to_string_pretty(&configs).ok() {
2730
info!("load neovim client config: {}", pretty_json);

0 commit comments

Comments
 (0)