fix(lsp): backward compat with lspconfig refactor. Fixes #4525. See #4518

This commit is contained in:
Folke Lemaitre 2024-10-02 10:18:21 +02:00
parent 34f0e568d4
commit 6e4025229d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 11 additions and 2 deletions

View file

@ -76,7 +76,7 @@ return {
return {
-- How to find the root dir for a given filename. The default comes from
-- lspconfig which provides a function specifically for java projects.
root_dir = require("lspconfig.configs.jdtls").default_config.root_dir,
root_dir = LazyVim.lsp.get_raw_config("jdtls").default_config.root_dir,
-- How to find the project name for a given root dir.
project_name = function(root_dir)