1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-02-08 20:55:22 +00:00

22 lines
584 B
Lua
Raw Normal View History

2024-02-10 15:29:01 +01:00
local none_ls = require("null-ls")
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
2024-02-10 15:29:01 +01:00
local diagnostics = none_ls.builtins.diagnostics
2022-10-01 13:46:18 +02:00
2023-02-25 20:36:46 +01:00
local revive_conf = vim.fn.findfile(os.getenv("HOME") .. "/.revive.toml")
local revive_args = { "-formatter", "json", "./..." }
if revive_conf then
revive_args = { "-formatter", "json", "-config", revive_conf, "./..." }
end
2024-02-10 15:29:01 +01:00
none_ls.setup({
2022-10-01 13:46:18 +02:00
debug = false,
sources = {
diagnostics.hadolint,
2022-10-12 16:02:54 +02:00
diagnostics.markdownlint,
2023-02-25 20:36:46 +01:00
diagnostics.revive.with({
args = revive_args,
}),
2023-07-19 17:57:14 +02:00
diagnostics.cfn_lint,
2022-10-01 13:46:18 +02:00
},
})