mirror of
https://github.com/L3MON4D3/LuaSnip
synced 2024-09-16 21:54:03 +02:00
Format with stylua
This commit is contained in:
parent
ee0da4262a
commit
5c2dca8852
2 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue