From bedb2a0df105f68a624a49b867f269b6d55a2c89 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 1 Oct 2024 05:39:12 -0700 Subject: refactor: rename "server_configurations" => "configs" #3330 Problem: The name `server_configurations` is extremely verbose and irritatingly formal and dogmatic. This overlong name is a constant nuisance when reading, writing, and coding. It's also not even correct: these configurations are just as much "client" configurations as they are "server" configurations. Solution: - Rename to a shorter name. - Leave placeholder files for any old URLs that link to the old location. --- lua/lspconfig/configs/java_language_server.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lua/lspconfig/configs/java_language_server.lua (limited to 'lua/lspconfig/configs/java_language_server.lua') diff --git a/lua/lspconfig/configs/java_language_server.lua b/lua/lspconfig/configs/java_language_server.lua new file mode 100644 index 00000000..3ddf4b1b --- /dev/null +++ b/lua/lspconfig/configs/java_language_server.lua @@ -0,0 +1,18 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + filetypes = { 'java' }, + root_dir = util.root_pattern('build.gradle', 'pom.xml', '.git'), + settings = {}, + }, + docs = { + description = [[ +https://github.com/georgewfraser/java-language-server + +Java language server + +Point `cmd` to `lang_server_linux.sh` or the equivalent script for macOS/Windows provided by java-language-server +]], + }, +} -- cgit v1.2.3-70-g09d2