add: tidy up the code, more modular

This commit is contained in:
asep.komarudin 2024-05-21 08:33:21 +07:00
parent 1545d8335d
commit 1f424a1225
10 changed files with 583 additions and 522 deletions

View file

@ -0,0 +1,10 @@
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