Format with stylua

This commit is contained in:
L3MON4D3 2024-08-20 20:21:31 +00:00 committed by github-actions[bot]
parent 8ffedac33f
commit 7ad2eaeaca
2 changed files with 16 additions and 4 deletions

View file

@ -70,8 +70,19 @@ function M.pre_yank(yank_register)
-- store registers so we don't change any of them.
-- "" is affected since we perform a cut (s), 1-9 also (although :h
-- quote_number seems to state otherwise for cuts to specific registers..?).
saved_registers =
store_registers("", "1", "2", "3", "4", "5", "6", "7", "8", "9", yank_register)
saved_registers = store_registers(
"",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
yank_register
)
-- store data needed for de-indenting lines.
start_line = vim.fn.line("'<") - 1

View file

@ -94,7 +94,7 @@ describe("Selection", function()
{0:~ }|
{0:~ }|
{0:~ }|
|]]
|]],
})
exec_lua([[ls.lsp_expand(".$LS_SELECT_RAW.")]])
screen:expect({
@ -105,7 +105,8 @@ describe("Selection", function()
{0:~ }|
{0:~ }|
{0:~ }|
{2:-- INSERT --} |]]})
{2:-- INSERT --} |]],
})
end)
it("works with linewise-selection.", function()