chore: reformat with stylua 0.13

This commit is contained in:
Simon Hauser
2022-04-03 13:33:33 +02:00
parent d38ad438f3
commit 6e7ee38292
4 changed files with 33 additions and 35 deletions

View File

@@ -2,8 +2,7 @@ local entry_display = require "telescope.pickers.entry_display"
describe("truncate", function()
for _, ambiwidth in ipairs { "single", "double" } do
for _, case in
ipairs {
for _, case in ipairs {
{ args = { "abcde", 6 }, expected = { single = "abcde", double = "abcde" } },
{ args = { "abcde", 5 }, expected = { single = "abcde", double = "abcde" } },
{ args = { "abcde", 4 }, expected = { single = "abc…", double = "ab…" } },
@@ -17,8 +16,7 @@ describe("truncate", function()
{ args = { "├─┤", 4 }, expected = { single = "├─┤", double = "├…" } },
{ args = { "├─┤", 3 }, expected = { single = "├─┤", double = "" } },
{ args = { "├─┤", 2 }, expected = { single = "├…", double = "" } },
}
do
} do
local msg = ("can truncate: ambiwidth = %s, [%s, %d] -> %s"):format(
ambiwidth,
case.args[1],

View File

@@ -15,12 +15,10 @@ describe("builtin.find_files", function()
tester.run_file "find_files__with_ctrl_n"
end)
for _, configuration in
ipairs {
for _, configuration in ipairs {
{ sorting_strategy = "descending" },
{ sorting_strategy = "ascending" },
}
do
} do
it("should not display devicons when disabled: " .. disp(configuration), function()
tester.run_string(string.format(
[[

View File

@@ -1,8 +1,10 @@
-- Setup telescope with defaults
if RELOAD then RELOAD('telescope') end
require('telescope').setup()
if RELOAD then
RELOAD "telescope"
end
require("telescope").setup()
local docgen = require('docgen')
local docgen = require "docgen"
local docs = {}
@@ -32,7 +34,7 @@ docs.test = function()
docgen.write(input_file, output_file_handle)
end
output_file_handle:write(" vim:tw=78:ts=8:ft=help:norl:\n")
output_file_handle:write " vim:tw=78:ts=8:ft=help:norl:\n"
output_file_handle:close()
vim.cmd [[checktime]]
end