diff --git a/CHANGELOG.md b/CHANGELOG.md index 579b23191..95348096c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ `CHG` refactor `template system`, optimize the generic infer +`FIX` now configurations are loaded properly in NeoVim in cases when no extra LSP configuration parameters are provided + # 0.3.3 `NEW` Add Develop Guide diff --git a/crates/emmylua_ls/src/handlers/initialized/client_config/neovim_config.rs b/crates/emmylua_ls/src/handlers/initialized/client_config/neovim_config.rs index a283913f8..a7df41145 100644 --- a/crates/emmylua_ls/src/handlers/initialized/client_config/neovim_config.rs +++ b/crates/emmylua_ls/src/handlers/initialized/client_config/neovim_config.rs @@ -21,7 +21,10 @@ pub async fn get_client_config_neovim( let cancel_token = time_cancel_token(Duration::from_secs(5)); let configs = client .get_configuration::(params, cancel_token) - .await?; + .await? + .into_iter() + .filter(|config| !config.is_null()) + .collect(); if let Some(pretty_json) = serde_json::to_string_pretty(&configs).ok() { info!("load neovim client config: {}", pretty_json);