Skip to content

Commit 148f239

Browse files
committed
style: run bin/format
1 parent 78fc932 commit 148f239

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

lua/wincent/commandt/init.lua

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -627,22 +627,23 @@ commandt.file_finder = function(directory)
627627
end
628628

629629
local finder = require('wincent.commandt.private.finders.file')('.', options)
630-
ui.show(finder, merge(options, {
631-
name = 'file',
632-
on_open = function(result)
633-
if previous_cwd ~= next_cwd then
634-
result = vim.fs.normalize(
635-
vim.fs.joinpath(next_cwd, result)
636-
)
637-
end
638-
return result
639-
end,
640-
on_close = function()
641-
if previous_cwd ~= next_cwd then
642-
vim.fn.chdir(previous_cwd)
643-
end
644-
end,
645-
}))
630+
ui.show(
631+
finder,
632+
merge(options, {
633+
name = 'file',
634+
on_open = function(result)
635+
if previous_cwd ~= next_cwd then
636+
result = vim.fs.normalize(vim.fs.joinpath(next_cwd, result))
637+
end
638+
return result
639+
end,
640+
on_close = function()
641+
if previous_cwd ~= next_cwd then
642+
vim.fn.chdir(previous_cwd)
643+
end
644+
end,
645+
})
646+
)
646647
end
647648

648649
local report_errors = function(errors, heading)

0 commit comments

Comments
 (0)