nvim: Load nvim-surround as VeryLazy

This fixes the somewhat confusing issue of trying to use any of the
surround operations before entering insert mode at least once in a file
(so, probably as the first operation). Before, the plugin would just
silently fail.
Now it simply loads very lazily, which does not affect load times
strongly.
This commit is contained in:
Marty Oehme 2024-06-06 20:45:53 +02:00
parent f8dfe7d856
commit b69548fa38
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -9,7 +9,7 @@ return {
},
},
-- surround things with other things using ys/cs/ds
{ "kylechui/nvim-surround", config = true, event = "InsertEnter" },
{ "kylechui/nvim-surround", config = true, event = "VeryLazy" },
-- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers
{