RENAME: Changed vern.nvim to vern-nvim and moved vern to vern-nvim

This commit is contained in:
2026-10-26 09:48:33 -04:00
parent 645eeed296
commit 774f14809d
31 changed files with 407 additions and 653 deletions
+19
View File
@@ -0,0 +1,19 @@
local M = {}
---@param kind_path string Filetype of template
---@param kind string Template in language table
---@param name string A string to replace temp values in template
---@return string Content Formatted string
function M.fetch(kind_path, kind, name)
kind, name = kind or "", name or ""
if (kind == "" or nil) or (name == "" or nil) then
return ""
end
local ok, mod = pcall(require, kind_path)
if ok and type(mod) == "table" then
return (string.gsub(mod[kind], "__PROJECT_NAME__", name))
end
return ""
end
return M