mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 17:28:50 +02:00
add: config default java
This commit is contained in:
parent
24b3020b5c
commit
ef95246d88
5 changed files with 48 additions and 2 deletions
|
@ -13,4 +13,17 @@ M.list_registered_providers_names = function(filetype)
|
|||
return registered
|
||||
end
|
||||
|
||||
M.list_all_registerd = function()
|
||||
local s = require("null-ls.sources")
|
||||
local available_sources = s.get_all()
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue