vim.bo.expandtab = true vim.bo.shiftwidth = 4 vim.bo.tabstop = 4 local home = os.getenv("HOME") or os.getenv("USERPROFILE") local config = { cmd = { home .. '/.local/share/java/jdtls/bin/jdtls' }, root_dir = vim.fs.dirname(vim.fs.find({ 'gradlew', '.git', 'mvnw' }, { upward = true })[1]), } require('jdtls').start_or_attach(config)