From 8fc50a3b9d86fd47e84e804fea563d563cb562fa Mon Sep 17 00:00:00 2001 From: pml68 Date: Tue, 25 Jun 2024 11:58:42 +0200 Subject: feat: only load guard.nvim for C, C++ and JSON --- lua/pml68/plugins.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index 8ebbca3..b833e05 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -54,7 +54,7 @@ local plugins = { view_options = { show_hidden = true, natural_order = true, - is_always_hidden = function (name, _) + is_always_hidden = function(name, _) return name == '.git' end }, @@ -251,7 +251,7 @@ local plugins = { dependencies = { "nvimdev/guard-collection" }, - event = "BufReadPre", + ft = { "c", "cpp", "json" }, config = function() local ft = require("guard.filetype") -- cgit v1.2.3