refactor: extract gh() helper into shared util module
This commit is contained in:
parent
455a5a252c
commit
8f81178f7b
|
|
@ -0,0 +1,11 @@
|
|||
-- Shared utilities for kickstart plugin files
|
||||
local M = {}
|
||||
|
||||
--- GitHub URL shorthand: gh('user/repo') -> 'https://github.com/user/repo'
|
||||
---@param repo string
|
||||
---@return string
|
||||
function M.gh(repo)
|
||||
return 'https://github.com/' .. repo
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Reference in New Issue