aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/guard.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-01-01 01:19:19 +0100
committerpml68 <contact@pml68.dev>2025-01-01 01:19:19 +0100
commitd6b3f9aaf670eec24ba008e9113839b308666f01 (patch)
treef73c6be95db320e51d75cfb5a7d8689801f6cff4 /lua/pml68/plugins/guard.lua
parentfix: cmp deleting text, behaving weirdly (diff)
downloadnvim-d6b3f9aaf670eec24ba008e9113839b308666f01.tar.gz
fix: revert to rust.vim, fix weird cmp behavior
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