enc: add create project java

This commit is contained in:
Pojok Code 2024-11-16 20:14:22 +07:00
parent 3c9cf18933
commit 16264d0b0d
6 changed files with 585 additions and 13 deletions

View file

@ -7,11 +7,17 @@ M = {
vim.list_extend(opts.skip_config, { "jdtls" })
end,
},
{
"pojokcodeid/auto-java-project.nvim",
event = "VeryLazy",
config = function()
require("auto-java-project").setup()
end,
},
{
"mfussenegger/nvim-jdtls",
dependencies = { "pojokcodeid/auto-jdtls.nvim" },
ft = { "java" },
enabled = true,
-- your opts go here
opts = {},
config = function(_, opts)
@ -33,8 +39,9 @@ M = {
"nvim-treesitter/nvim-treesitter",
"andy-bell101/neotest-java",
},
enabled = vim.fn.findfile("build.gradle", vim.fn.getcwd()) == "build.gradle" or false,
-- enabled = vim.fn.findfile("build.gradle", vim.fn.getcwd()) == "build.gradle" or false,
config = function()
require("auto-jdtls.create_maven_project")
require("neotest").setup({
adapters = {
require("neotest-java"),