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
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
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 = {

View file

@ -40,6 +40,7 @@ return {
{ "<bs>", desc = "Decrement selection", mode = "x" },
},
---@type TSConfig
---@diagnostic disable-next-line: missing-fields
opts = {
highlight = { enable = true },
indent = { enable = true },