aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/guard.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins/guard.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/pml68/plugins/guard.lua b/lua/pml68/plugins/guard.lua
index 8f0ddd0..bfae097 100644
--- a/lua/pml68/plugins/guard.lua
+++ b/lua/pml68/plugins/guard.lua
@@ -3,12 +3,11 @@ return {
dependencies = {
"nvimdev/guard-collection"
},
- event = { "BufReadPost", "BufNewFile" },
+ ft = { "c", "cpp", "h", "json", "go", "lua" },
config = function()
local ft = require("guard.filetype")
ft("c,cpp,h"):fmt("clang-format")
- ft("rust"):fmt("lsp")
ft("json"):fmt({
cmd = "jq",
stdin = true