autoload/lsp/handlers.vim | 9 +++++++++ diff --git a/autoload/lsp/handlers.vim b/autoload/lsp/handlers.vim index 2ecf525e21ef22e71411736327047ba8b99b58da..d92109995b491ac8bb2ffc91e4ca8e37735143b7 100644 --- a/autoload/lsp/handlers.vim +++ b/autoload/lsp/handlers.vim @@ -171,6 +171,15 @@ # Param: ConfigurationParams def ProcessWorkspaceConfiguration(lspserver: dict, request: dict) var items = request.params.items var response = items->map((_, item) => lspserver.workspaceConfigGet(item)) + + # Server expect null value if no config is given + # TODO: Proper null return from workspaceConfigGet if no config is found + if response->type() == v:t_list + && response[0]->type() == v:t_dict + && response[0] == null_dict + response[0] = null + endif + lspserver.sendResponse(request, response, {}) enddef