Skip to content

Commit f262e7d

Browse files
authored
chore: format with stylua 0.12.0 (#1730)
1 parent 3a3c9a3 commit f262e7d

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

.stylua.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ line_endings = "Unix"
33
indent_type = "Spaces"
44
indent_width = 2
55
quote_style = "AutoPreferDouble"
6-
no_call_parentheses = true
6+
call_parentheses = "None"

lua/tests/automated/entry_display_spec.lua

+17-15
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ local entry_display = require "telescope.pickers.entry_display"
22

33
describe("truncate", function()
44
for _, ambiwidth in ipairs { "single", "double" } do
5-
for _, case in ipairs {
6-
{ args = { "abcde", 6 }, expected = { single = "abcde", double = "abcde" } },
7-
{ args = { "abcde", 5 }, expected = { single = "abcde", double = "abcde" } },
8-
{ args = { "abcde", 4 }, expected = { single = "abc…", double = "ab…" } },
9-
{ args = { "アイウエオ", 11 }, expected = { single = "アイウエオ", double = "アイウエオ" } },
10-
{ args = { "アイウエオ", 10 }, expected = { single = "アイウエオ", double = "アイウエオ" } },
11-
{ args = { "アイウエオ", 9 }, expected = { single = "アイウエ…", double = "アイウ…" } },
12-
{ args = { "アイウエオ", 8 }, expected = { single = "アイウ…", double = "アイウ…" } },
13-
{ args = { "├─┤", 7 }, expected = { single = "├─┤", double = "├─┤" } },
14-
{ args = { "├─┤", 6 }, expected = { single = "├─┤", double = "├─┤" } },
15-
{ args = { "├─┤", 5 }, expected = { single = "├─┤", double = "├…" } },
16-
{ args = { "├─┤", 4 }, expected = { single = "├─┤", double = "├…" } },
17-
{ args = { "├─┤", 3 }, expected = { single = "├─┤", double = "" } },
18-
{ args = { "├─┤", 2 }, expected = { single = "├…", double = "" } },
19-
} do
5+
for _, case in
6+
ipairs {
7+
{ args = { "abcde", 6 }, expected = { single = "abcde", double = "abcde" } },
8+
{ args = { "abcde", 5 }, expected = { single = "abcde", double = "abcde" } },
9+
{ args = { "abcde", 4 }, expected = { single = "abc…", double = "ab…" } },
10+
{ args = { "アイウエオ", 11 }, expected = { single = "アイウエオ", double = "アイウエオ" } },
11+
{ args = { "アイウエオ", 10 }, expected = { single = "アイウエオ", double = "アイウエオ" } },
12+
{ args = { "アイウエオ", 9 }, expected = { single = "アイウエ…", double = "アイウ…" } },
13+
{ args = { "アイウエオ", 8 }, expected = { single = "アイウ…", double = "アイウ…" } },
14+
{ args = { "├─┤", 7 }, expected = { single = "├─┤", double = "├─┤" } },
15+
{ args = { "├─┤", 6 }, expected = { single = "├─┤", double = "├─┤" } },
16+
{ args = { "├─┤", 5 }, expected = { single = "├─┤", double = "├…" } },
17+
{ args = { "├─┤", 4 }, expected = { single = "├─┤", double = "├…" } },
18+
{ args = { "├─┤", 3 }, expected = { single = "├─┤", double = "" } },
19+
{ args = { "├─┤", 2 }, expected = { single = "├…", double = "" } },
20+
}
21+
do
2022
local msg = ("can truncate: ambiwidth = %s, [%s, %d] -> %s"):format(
2123
ambiwidth,
2224
case.args[1],

lua/tests/automated/pickers/find_files_spec.lua

+6-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ describe("builtin.find_files", function()
1515
tester.run_file "find_files__with_ctrl_n"
1616
end)
1717

18-
for _, configuration in ipairs {
19-
{ sorting_strategy = "descending" },
20-
{ sorting_strategy = "ascending" },
21-
} do
18+
for _, configuration in
19+
ipairs {
20+
{ sorting_strategy = "descending" },
21+
{ sorting_strategy = "ascending" },
22+
}
23+
do
2224
it("should not display devicons when disabled: " .. disp(configuration), function()
2325
tester.run_string(string.format(
2426
[[

0 commit comments

Comments
 (0)