feat: add simple java support

This commit is contained in:
2025-10-30 20:26:07 +01:00
parent 6222393fc5
commit 248c1f1b21

View File

@@ -27,6 +27,9 @@ vim.pack.add({
{ src = "https://github.com/terrortylor/nvim-comment" }, { src = "https://github.com/terrortylor/nvim-comment" },
-- required by nvim-comment -- required by nvim-comment
{ src = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" }, { src = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" },
-- java support
{ src = "https://github.com/mfussenegger/nvim-jdtls" }
}) })
require('nvim_comment').setup({ require('nvim_comment').setup({
@@ -118,7 +121,10 @@ vim.lsp.config('lua_ls', {
}, },
} }
}) })
vim.lsp.enable({ "lua_ls", "gopls", "templ", "ts_ls", "tailwindcss" }) vim.lsp.config('jdtls', {
cmd = { "jdtls", "--jvm-arg=-javaagent:/usr/share/java/lombok/lombok.jar" }
})
vim.lsp.enable({ "lua_ls", "gopls", "templ", "ts_ls", "tailwindcss", "bashls", "jdtls" })
-- Enables filtered completions for tailwindcss class names, e.g. "mt-<C-n>". -- Enables filtered completions for tailwindcss class names, e.g. "mt-<C-n>".
-- Otherwise the completion contains EVERYTHING -- Otherwise the completion contains EVERYTHING