nvim-config/lua/configs/null-ls.lua

27 lines
615 B
Lua
Raw Normal View History

2022-03-01 02:58:43 +00:00
local M = {}
2022-05-01 17:43:11 +00:00
2022-03-01 02:58:43 +00:00
function M.config()
local status_ok, null_ls = pcall(require, "null-ls")
if not status_ok then
return
end
null_ls.setup {
sources = {
2022-10-20 06:56:02 +00:00
-- https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md
-- sudo pacman -S prettierd
null_ls.builtins.formatting.prettierd,
2022-05-01 17:43:11 +00:00
2022-10-20 06:56:02 +00:00
-- sudo pacman -S eslint_d
null_ls.builtins.diagnostics.eslint_d.with({
diagnostic_config = { -- see also :help vim.diagnostic.config()
virtual_text = false,
}
}),
}
2022-03-01 02:58:43 +00:00
}
end
return M