aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-06-25 11:58:42 +0200
committerpml68 <tutorialmester@gmail.com>2024-06-25 11:58:42 +0200
commit8fc50a3b9d86fd47e84e804fea563d563cb562fa (patch)
tree2069fe80af155e9bcabe0bc6dcbcbd5112d5df08 /lua/pml68
parentfeat(Oil): add some config options (diff)
downloadnvim-8fc50a3b9d86fd47e84e804fea563d563cb562fa.tar.gz
feat: only load guard.nvim for C, C++ and JSON
Diffstat (limited to 'lua/pml68')
-rw-r--r--lua/pml68/plugins.lua4
1 files changed, 2 insertions, 2 deletions
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")