From 6e383137978298562f97e1f06f4ad3330f05b7f9 Mon Sep 17 00:00:00 2001 From: ecosse3 Date: Mon, 13 Mar 2023 15:42:02 +0100 Subject: [PATCH] feat(plugins): make printer.nvim load lazily --- lua/config/plugins.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/config/plugins.lua b/lua/config/plugins.lua index e5309604..cd0cb1ae 100644 --- a/lua/config/plugins.lua +++ b/lua/config/plugins.lua @@ -393,7 +393,14 @@ return { }, { "rareitems/printer.nvim", - lazy = false, + event = "BufEnter", + ft = { + "lua", + "javascript", + "typescript", + "javascriptreact", + "typescriptreact", + }, config = function() require("plugins.printer") end,