mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 01:08:53 +02:00
add: lualine null-ls validation
This commit is contained in:
parent
ece7dd2b9f
commit
98a141b4b5
4 changed files with 31 additions and 22 deletions
|
@ -1,10 +1,14 @@
|
|||
local null_ls = require("null-ls")
|
||||
local ok, null_ls = pcall(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 {}
|
||||
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
|
||||
end
|
||||
|
||||
M.list_registered_all = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue