fix(plugin): local spec name

This commit is contained in:
Folke Lemaitre 2024-07-04 16:16:39 +02:00
parent 6fdd904ee4
commit 923e1aa7a4
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 10 deletions

View File

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