refactor: Reorganize provider API

This commit is contained in:
hedy
2023-11-22 20:55:10 +08:00
parent 3c9f267126
commit ec4f727631
5 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ function M.find_provider()
end
for _, name in ipairs(M.providers) do
local provider = require(name)
if provider.should_use_provider(0) then
if provider.supports_buffer(0) then
return provider, name
end
end