mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
16 lines
429 B
Lua
16 lines
429 B
Lua
local M = {}
|
|
|
|
M.list_registered_providers_names = function(filetype)
|
|
local s = require("null-ls.sources")
|
|
local available_sources = s.get_available(filetype)
|
|
local registered = {}
|
|
for _, source in ipairs(available_sources) do
|
|
for method in pairs(source.methods) do
|
|
registered[method] = registered[method] or {}
|
|
table.insert(registered[method], source.name)
|
|
end
|
|
end
|
|
return registered
|
|
end
|
|
|
|
return M
|