diff --git a/lua/project-starter/init.lua b/lua/project-starter/init.lua index 40dd8f6..a744f06 100644 --- a/lua/project-starter/init.lua +++ b/lua/project-starter/init.lua @@ -51,7 +51,7 @@ vim.api.nvim_create_user_command( 'CreateProject', function (args) local arguments = {} - for word in args.args:gmatch("%w+") do table.insert(arguments, word) end + for word in args.args:gmatch("[%w%-_]+") do table.insert(arguments, word) end if #arguments == 0 then print("At least one argument is needed (" .. utils.get_implemented_languages() .. ")")