runtime(vim): Update indent script for line continuation with lambda

fixes: #18257
closes: #18269

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Maxim Kim
2025-09-11 14:25:09 -04:00
committed by Christian Brabandt
parent 15070eee2f
commit b49d695fbc
3 changed files with 24 additions and 1 deletions

View File

@ -782,3 +782,14 @@ this.value = value
enddef
endenum
# END_INDENT
# START_INDENT
def ToggleBoolOpt(opt: string)
exe $"&{opt} = !&{opt}"
$"&{opt}"
->eval()
->( (v) => v ? "ON" : "OFF" )()
->printf($"{opt} %s")
->popup_notification({})
enddef
# END_INDENT

View File

@ -782,3 +782,14 @@ enum Digits
enddef
endenum
# END_INDENT
# START_INDENT
def ToggleBoolOpt(opt: string)
exe $"&{opt} = !&{opt}"
$"&{opt}"
->eval()
->( (v) => v ? "ON" : "OFF" )()
->printf($"{opt} %s")
->popup_notification({})
enddef
# END_INDENT