From d6b3f9aaf670eec24ba008e9113839b308666f01 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 1 Jan 2025 01:19:19 +0100 Subject: fix: revert to rust.vim, fix weird cmp behavior --- lua/pml68/plugins/guard.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua/pml68/plugins/guard.lua') 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 -- cgit v1.2.3