fix(config): trigger LazyFile additionally on BufWritePre for saving unnamed files

This commit is contained in:
Folke Lemaitre
2023-10-08 15:17:50 +02:00
parent 639a6e7545
commit e11a3cbe80
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ local M = {}
M.lazy_version = ">=10.8.0"
M.use_lazy_file = true
M.lazy_file_events = { "BufReadPost", "BufNewFile" }
M.lazy_file_events = { "BufReadPost", "BufNewFile", "BufWritePre" }
---@class LazyVimOptions
local defaults = {