mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
11 lines
286 B
Lua
11 lines
286 B
Lua
|
local null_ls = require("null-ls")
|
||
|
local M = {}
|
||
|
|
||
|
M.list_registered = function(filetype)
|
||
|
local method = null_ls.methods.FORMATTING
|
||
|
local registered_providers = require("user.utils.lsp").list_registered_providers_names(filetype)
|
||
|
return registered_providers[method] or {}
|
||
|
end
|
||
|
|
||
|
return M
|