From 8f81178f7bc7c41a316546b7a0909590cdde8ebf Mon Sep 17 00:00:00 2001 From: Kontrol Date: Tue, 7 Jul 2026 08:51:43 -0300 Subject: [PATCH] refactor: extract gh() helper into shared util module --- lua/kickstart/util.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/kickstart/util.lua diff --git a/lua/kickstart/util.lua b/lua/kickstart/util.lua new file mode 100644 index 00000000..fffacd52 --- /dev/null +++ b/lua/kickstart/util.lua @@ -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