astrocommunity icon indicating copy to clipboard operation
astrocommunity copied to clipboard

java pack root_dir

Open jsenjobs opened this issue 1 year ago • 6 comments

Checklist

  • [X] I have searched through the AstroNvim documentation
  • [X] I have searched through the existing issues of this project
  • [X] I have searched the existing issues of plugins related to this issue
  • [X] I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

0.10.0 release

Operating system/version

macOS 11.5

Terminal/GUI

noevidea

Describe the bug

java pack can not resolve root_dir when maven project with submodules

Steps to Reproduce

open a java maven project with submodules

Expected behavior

submodule--

Screenshots

No response

Additional Context

No response

Minimal configuration

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", import = "astronvim.plugins" },
  { "AstroNvim/astrocommunity" },

  -- add any other plugins/customizations here
  { import = "astrocommunity.pack.java"},
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)

jsenjobs avatar Jul 26 '24 01:07 jsenjobs