trigger on java file opened

This commit is contained in:
Baipyrus 2024-07-28 22:08:44 +02:00
parent 2da89bd3e7
commit d9eca6205a

View File

@ -262,7 +262,12 @@ return {
bundles = {}, bundles = {},
}, },
} }
require('jdtls').start_or_attach(config) vim.api.nvim_create_autocmd('FileType', {
pattern = 'java',
callback = function()
require('jdtls').start_or_attach(config)
end,
})
end end
-- Ensure the servers and tools above are installed -- Ensure the servers and tools above are installed