Update init.lua
This commit is contained in:
@@ -30,10 +30,6 @@ end
|
||||
function M.create_project()
|
||||
-- Use vim.ui.input for better handling of input
|
||||
vim.ui.input({ prompt = "Enter project name: " }, function(project_name)
|
||||
-- Debugging: Output the input received
|
||||
print("Input received: " .. (project_name or "nil"))
|
||||
|
||||
-- Check if the project name is valid
|
||||
if not project_name or project_name == "" then
|
||||
print("Project creation canceled.")
|
||||
return
|
||||
@@ -44,11 +40,6 @@ function M.create_project()
|
||||
local src_dir = project_root .. "/root/src"
|
||||
local out_dir = project_root .. "/root/out"
|
||||
|
||||
-- Debugging: Print the paths
|
||||
print("Project root: " .. project_root)
|
||||
print("Source directory: " .. src_dir)
|
||||
print("Output directory: " .. out_dir)
|
||||
|
||||
-- Create directories
|
||||
vim.fn.mkdir(src_dir, "p")
|
||||
vim.fn.mkdir(out_dir, "p")
|
||||
|
||||
Reference in New Issue
Block a user