aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/gradle_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/configs/gradle_ls.lua')
-rw-r--r--lua/lspconfig/configs/gradle_ls.lua19
1 files changed, 4 insertions, 15 deletions
diff --git a/lua/lspconfig/configs/gradle_ls.lua b/lua/lspconfig/configs/gradle_ls.lua
index 6af1ee66..4739a790 100644
--- a/lua/lspconfig/configs/gradle_ls.lua
+++ b/lua/lspconfig/configs/gradle_ls.lua
@@ -5,15 +5,13 @@ if vim.fn.has 'win32' == 1 then
bin_name = bin_name .. '.bat'
end
-local root_files = {
- 'settings.gradle', -- Gradle (multi-project)
- 'build.gradle', -- Gradle
-}
-
return {
default_config = {
filetypes = { 'groovy' },
- root_dir = util.root_pattern(unpack(root_files)),
+ root_dir = util.root_pattern(
+ 'settings.gradle', -- Gradle (multi-project)
+ 'build.gradle' -- Gradle
+ ),
cmd = { bin_name },
-- gradle-language-server expects init_options.settings to be defined
init_options = {
@@ -30,14 +28,5 @@ Microsoft's lsp server for gradle files
If you're setting this up manually, build vscode-gradle using `./gradlew installDist` and point `cmd` to the `gradle-language-server` generated in the build directory
]],
- default_config = {
- root_dir = [[root_pattern("settings.gradle", "build.gradle")]],
- cmd = { 'gradle-language-server' },
- init_options = {
- settings = {
- gradleWrapperEnabled = true,
- },
- },
- },
},
}