refactor: extract gh() helper into shared util module

This commit is contained in:
Kontrol 2026-07-07 08:51:43 -03:00
parent 455a5a252c
commit 8f81178f7b
1 changed files with 11 additions and 0 deletions

11
lua/kickstart/util.lua Normal file
View File

@ -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