nvim-config/lua/configs/null-ls.lua
2023-01-09 18:45:11 -08:00

27 lines
633 B
Lua

local M = {}
function M.config()
local status_ok, null_ls = pcall(require, "null-ls")
if not status_ok then
return
end
null_ls.setup {
sources = {
-- https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md
-- sudo pacman -S prettierd
-- null_ls.builtins.formatting.prettierd,
-- sudo pacman -S eslint_d
-- null_ls.builtins.diagnostics.eslint_d.with({
-- diagnostic_config = { -- see also :help vim.diagnostic.config()
-- virtual_text = false,
-- }
-- }),
}
}
end
return M