mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-28 03:24:13 +00:00
feat(spec): config
can be true
or a table
that will be passed to require("plugin").setup(config)
This commit is contained in:
parent
9e983898b1
commit
2a7b0047dd
4 changed files with 69 additions and 2 deletions
|
@ -27,6 +27,11 @@ function M.track(data, time)
|
|||
end
|
||||
end
|
||||
|
||||
---@param name string
|
||||
function M.normname(name)
|
||||
return name:lower():gsub("^n?vim%-", ""):gsub("%.n?vim$", ""):gsub("%.lua", ""):gsub("[^a-z]+", "")
|
||||
end
|
||||
|
||||
function M.norm(path)
|
||||
if path:sub(1, 1) == "~" then
|
||||
local home = vim.loop.os_homedir()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue