dotfiles/.config/nvim/lua/plugins/null-ls.lua

19 lines
434 B
Lua
Raw Normal View History

2022-03-24 14:51:10 +01:00
local null_ls = require("null-ls")
local builtins = require("null-ls.builtins")
null_ls.setup({
sources = {
2022-08-01 14:18:48 +02:00
builtins.formatting.buf,
2022-08-01 15:21:32 +02:00
builtins.formatting.cue_fmt,
2022-08-01 14:18:48 +02:00
builtins.formatting.shfmt,
builtins.formatting.buildifier,
builtins.completion.spell,
builtins.diagnostics.buf.with({
args = { "lint", "--path", "$FILENAME" },
}),
2022-08-01 14:18:48 +02:00
builtins.diagnostics.buildifier,
2022-08-01 15:21:32 +02:00
builtins.diagnostics.cue_fmt,
2022-03-24 14:51:10 +01:00
},
debug = true,
})