add: update

This commit is contained in:
asep.komarudin 2024-06-29 08:00:30 +07:00
parent 14207d8f21
commit 9b41753fd4
9 changed files with 348 additions and 189 deletions

View file

@ -1,14 +1,10 @@
local ok, null_ls = pcall(require, "null-ls")
local null_ls = require("null-ls")
local M = {}
M.list_registered = function(filetype)
if ok then
local method = null_ls.methods.FORMATTING
local registered_providers = require("user.utils.lsp").list_registered_providers_names(filetype)
return registered_providers[method] or {}
else
return {}
end
local method = null_ls.methods.FORMATTING
local registered_providers = require("user.utils.lsp").list_registered_providers_names(filetype)
return registered_providers[method] or {}
end
M.list_registered_all = function()