Skip to content

Commit

Permalink
allowing - and _
Browse files Browse the repository at this point in the history
  • Loading branch information
KDesp73 committed Jan 28, 2024
1 parent f35ec86 commit 0126282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/project-starter/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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() .. ")")
Expand Down

0 comments on commit 0126282

Please sign in to comment.