Skip to content

Commit 6bd1778

Browse files
committed
lint with stylua
1 parent c62e516 commit 6bd1778

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

lua/gitlogdiff/log.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ function M.get_commits(cb)
55
local max_count = tonumber(cfg.max_count)
66

77
local args = {
8-
"git", "log",
8+
"git",
9+
"log",
910
string.format("--max-count=%d", max_count),
1011
"--pretty=format:%h %ad %s",
1112
"--date=short",

lua/gitlogdiff/ui.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,12 @@ end
7474
function M.keymaps()
7575
local opts = { buffer = M.state.buf, silent = true }
7676

77-
vim.keymap.set("n", "j", function() M.move(1) end, opts)
78-
vim.keymap.set("n", "k", function() M.move(-1) end, opts)
77+
vim.keymap.set("n", "j", function()
78+
M.move(1)
79+
end, opts)
80+
vim.keymap.set("n", "k", function()
81+
M.move(-1)
82+
end, opts)
7983
vim.keymap.set("n", "<space>", M.toggle, opts)
8084

8185
vim.keymap.set("n", "<CR>", function()

tests/test_ui.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ T.before_each = function()
1515
package.loaded["gitlogdiff.ui"] = nil
1616
end
1717

18-
T.after_each = function()
19-
end
18+
T.after_each = function() end
2019

2120
T["move() updates cursor"] = function()
2221
local ui = require("gitlogdiff.ui")

0 commit comments

Comments
 (0)