nvim/ftplugin/java.lua

6 lines
185 B
Lua
Raw Permalink Normal View History

2024-03-17 16:19:58 +01:00
local config = {
cmd = { '/usr/bin/jdtls' },
root_dir = vim.fs.dirname(vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]),
}
require('jdtls').start_or_attach(config)