mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-26 10:48:40 +02:00
add: update
This commit is contained in:
parent
14207d8f21
commit
9b41753fd4
9 changed files with 348 additions and 189 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue