mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
enc: update config
This commit is contained in:
parent
fde1324bf2
commit
5e9e520a23
5 changed files with 20 additions and 9 deletions
|
@ -1,4 +1,11 @@
|
|||
local M = {}
|
||||
local is_gradle = function()
|
||||
if vim.fn.findfile("pom.xml", vim.fn.getcwd()) == "pom.xml" then
|
||||
return false
|
||||
else
|
||||
return true
|
||||
end
|
||||
end
|
||||
M = {
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
|
@ -49,7 +56,7 @@ M = {
|
|||
},
|
||||
}
|
||||
end,
|
||||
enabled = vim.fn.findfile("build.gradle", vim.fn.getcwd()) == "build.gradle" or false,
|
||||
enabled = is_gradle(),
|
||||
config = function(_, opts)
|
||||
-- get neotest namespace (api call creates or returns namespace)
|
||||
local neotest_ns = vim.api.nvim_create_namespace("neotest")
|
||||
|
@ -124,6 +131,7 @@ M = {
|
|||
"zeioth/project.nvim",
|
||||
cmd = "ProjectRoot",
|
||||
ft = { "java" },
|
||||
-- enabled = vim.fn.findfile("build.gradle", vim.fn.getcwd()) == "build.gradle" or false,
|
||||
opts = {
|
||||
-- How to find root directory
|
||||
patterns = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require("auto-jdtls2.create_gradle_project")
|
||||
require("auto-jdtls2.create_maven_project")
|
||||
require("auto-jdtls2.create_springboot_project")
|
||||
require("auto-jdtls2.generate_java_class")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue