Skip to content

Commit

Permalink
fix(plugin): local spec name
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 4, 2024
1 parent 6fdd904 commit 923e1aa
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,6 @@ function M.update_rocks_state()
end
end

---@param path string
function M.local_spec(path)
local file = vim.secure.read(path)
if file then
return loadstring(file)()
end
return {}
end

---@return LazySpecImport?
function M.find_local_spec()
if not Config.options.local_spec then
Expand All @@ -298,7 +289,7 @@ function M.find_local_spec()
import = function()
local data = vim.secure.read(file)
if data then
return loadstring(data)()
return loadstring(data, M.LOCAL_SPEC)()
end
return {}
end,
Expand Down

0 comments on commit 923e1aa

Please sign in to comment.