mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
enc: update config
This commit is contained in:
parent
fde1324bf2
commit
5e9e520a23
5 changed files with 20 additions and 9 deletions
|
@ -59,11 +59,11 @@ local function create_java_class()
|
|||
-- Format direktori dan path file berdasarkan input pengguna
|
||||
local package_dir = nil
|
||||
if package_name then
|
||||
if is_maven_project() then
|
||||
package_dir = string.format("src/main/java/%s", package_name:gsub("%.", "/"))
|
||||
else
|
||||
package_dir = string.format("app/src/main/java/%s", package_name:gsub("%.", "/"))
|
||||
end
|
||||
-- if is_maven_project() then
|
||||
package_dir = string.format("src/main/java/%s", package_name:gsub("%.", "/"))
|
||||
-- else
|
||||
-- package_dir = string.format("app/src/main/java/%s", package_name:gsub("%.", "/"))
|
||||
-- end
|
||||
if vim.fn.isdirectory(package_dir) == 0 then
|
||||
vim.fn.mkdir(package_dir, "p")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue