1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/java_language_server.lua
2021-10-05 15:13:10 +08:00

23 lines
635 B
Lua

local lspconfig = require 'lspconfig'
local configs = require 'lspconfig/configs'
local name = 'java_language_server'
configs[name] = {
default_config = {
filetypes = { 'java' },
root_dir = lspconfig.util.root_pattern('build.gradle', 'pom.xml', '.git'),
settings = {},
},
docs = {
package_json = 'https://raw.githubusercontent.com/georgewfraser/java-language-server/master/package.json',
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
]],
},
}