From 683cd64b26047dabca8b1989ee7b9386f023c044 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 10 Feb 2024 13:37:14 +0100 Subject: [PATCH] nvim: Lazy load editing plugins after entering insert --- nvim/.config/nvim/lua/plugins/editing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/editing.lua b/nvim/.config/nvim/lua/plugins/editing.lua index 70d59dc..67e08ed 100644 --- a/nvim/.config/nvim/lua/plugins/editing.lua +++ b/nvim/.config/nvim/lua/plugins/editing.lua @@ -2,7 +2,7 @@ return { -- adds exchange operator with cx. common use: cxiw . on 2 words to switch { "tommcdo/vim-exchange", - event = "VeryLazy", + event = "InsertEnter", }, -- Align tables and other alignable things { @@ -14,7 +14,7 @@ return { }, }, -- surround things with other things using ys/cs/ds - { "kylechui/nvim-surround", version = "*", config = true, event = "VeryLazy" }, + { "kylechui/nvim-surround", config = true, event = "InsertEnter" }, -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers {