1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-23 11:38:01 +00:00
dotfiles/.config/nvim/lua/plugins/lsp/none-ls.lua

22 lines
584 B
Lua
Raw Normal View History

2024-02-10 14:29:01 +00:00
local none_ls = require("null-ls")
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
2024-02-10 14:29:01 +00:00
local diagnostics = none_ls.builtins.diagnostics
2022-10-01 11:46:18 +00:00
2023-02-25 19:36:46 +00: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 14:29:01 +00:00
none_ls.setup({
2022-10-01 11:46:18 +00:00
debug = false,
sources = {
diagnostics.hadolint,
2022-10-12 14:02:54 +00:00
diagnostics.markdownlint,
2023-02-25 19:36:46 +00:00
diagnostics.revive.with({
args = revive_args,
}),
2023-07-19 15:57:14 +00:00
diagnostics.cfn_lint,
2022-10-01 11:46:18 +00:00
},
})