nvim: Start formatter on insertion mode

In addition to just before writing a buffer, we load the formatter
plugin when entering insertion mode.
This commit is contained in:
Marty Oehme 2025-08-23 12:36:28 +02:00
parent 44d76725cc
commit d6ef9acb1c
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -82,7 +82,7 @@ return {
end,
},
},
event = { "BufWritePre" },
event = { "InsertEnter", "BufWritePre" },
opts = {},
},
}