From 3272e4067f6f851d378fe4f3a42964529d163c6c Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Wed, 5 Oct 2022 22:30:42 +0200 Subject: [PATCH] lazy load diffview --- lua/my_plugins.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/my_plugins.lua b/lua/my_plugins.lua index 34c41cd..4c76dff 100644 --- a/lua/my_plugins.lua +++ b/lua/my_plugins.lua @@ -254,7 +254,10 @@ return require('packer').startup(function() use { 'sindrets/diffview.nvim', requires = 'nvim-lua/plenary.nvim', - config = get_setup('my_diffview') + config = get_setup('my_diffview'), + opt = true, + cmd = 'DiffviewOpen', + module = { 'diffview', 'diffview.actions' } } if packer_bootstrap then require('packer').sync()