refactor: format tables line by line for better readability (#2456)

* Format tables line by line for better readability

* Forgot a comma

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
Azad
2023-10-14 09:07:28 +02:00
committed by GitHub
parent e64a498a5e
commit 4054fc4be3
13 changed files with 117 additions and 22 deletions

View File

@@ -33,7 +33,12 @@ local CMDS = {
complete = "dir",
},
command = function(c)
api.tree.toggle { find_file = false, focus = true, path = c.args, update_root = false }
api.tree.toggle {
find_file = false,
focus = true,
path = c.args,
update_root = false,
}
end,
},
{
@@ -74,7 +79,11 @@ local CMDS = {
bar = true,
},
command = function(c)
api.tree.find_file { open = true, focus = true, update_root = c.bang }
api.tree.find_file {
open = true,
focus = true,
update_root = c.bang,
}
end,
},
{
@@ -86,7 +95,12 @@ local CMDS = {
complete = "dir",
},
command = function(c)
api.tree.toggle { find_file = true, focus = true, path = c.args, update_root = c.bang }
api.tree.toggle {
find_file = true,
focus = true,
path = c.args,
update_root = c.bang,
}
end,
},
{