blob: 9f033b32371b976e5eb3fb2b2b2ed7b89f1a2296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
return {
"nvimdev/guard.nvim",
dependencies = {
"nvimdev/guard-collection"
},
event = { "BufReadPost", "BufNewFile" },
config = function()
local ft = require("guard.filetype")
ft("c,cpp,h"):fmt("clang-format")
ft("json"):fmt({
cmd = "jq",
stdin = true
})
vim.g.guard_config = {
fmt_on_save = true,
lsp_as_default_formatter = true
}
end
}
|