mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 09:18:51 +02:00
fix(config): trigger LazyFile additionally on BufWritePre for saving unnamed files
This commit is contained in:
parent
639a6e7545
commit
e11a3cbe80
2 changed files with 2 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue