def ToggleBoolOpt(opt: string) exe $"&{opt} = !&{opt}" $"&{opt}" ->eval() ->( (v) => v ? "ON" : "OFF" )() ->printf($"{opt} %s") ->popup_notification({}) enddef noremap <Leader>ol <Cmd>call <SID>ToggleBoolOpt("relativenumber")<CR>
The = command indents the lambda incorrectly. Rest of the method calls are aligned properly
lambda's should be aligned same as other method calls like below.
def ToggleBoolOpt(opt: string) exe $"&{opt} = !&{opt}" $"&{opt}" ->eval() ->( (v) => v ? "ON" : "OFF" )() ->printf($"{opt} %s") ->popup_notification({}) enddef noremap <Leader>ol <Cmd>call <SID>ToggleBoolOpt("relativenumber")<CR
9.1 1-1734
Arch linux
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()