From ca1996c1aafa1b5e7c95ea06603dff518e354d27 Mon Sep 17 00:00:00 2001 From: Enaium <32991121+Enaium@users.noreply.github.com> Date: Thu, 26 Dec 2024 20:22:28 +0800 Subject: [PATCH] fix: add `build.gradle.kts` for java language server --- lua/lspconfig/configs/java_language_server.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lspconfig/configs/java_language_server.lua b/lua/lspconfig/configs/java_language_server.lua index 3ddf4b1b4c..cb0441618c 100644 --- a/lua/lspconfig/configs/java_language_server.lua +++ b/lua/lspconfig/configs/java_language_server.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { filetypes = { 'java' }, - root_dir = util.root_pattern('build.gradle', 'pom.xml', '.git'), + root_dir = util.root_pattern('build.gradle', 'build.gradle.kts', 'pom.xml', '.git'), settings = {}, }, docs = {