Skip to content

Commit 1efff79

Browse files
author
theprimeagen
committed
chore: formatting + lint
1 parent 5b34471 commit 1efff79

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

lua/harpoon/buffer.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
local utils = require("harpoon.utils")
21
local HarpoonGroup = require("harpoon.autocmd")
32

43
local M = {}

lua/harpoon/config.lua

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ function M.get_default_config()
140140
end
141141

142142
local row = list_item.context.row
143-
local row_text = vim.api.nvim_buf_get_lines(0, row - 1, row, false)
143+
local row_text =
144+
vim.api.nvim_buf_get_lines(0, row - 1, row, false)
144145
local col = #row_text[1]
145146

146147
if list_item.context.col > col then
@@ -154,9 +155,12 @@ function M.get_default_config()
154155
})
155156

156157
if edited then
157-
Extensions.extensions:emit(Extensions.event_names.POSITION_UPDATED, {
158-
list_item = list_item
159-
})
158+
Extensions.extensions:emit(
159+
Extensions.event_names.POSITION_UPDATED,
160+
{
161+
list_item = list_item,
162+
}
163+
)
160164
end
161165
end
162166

lua/harpoon/test/harpoon_spec.lua

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,16 @@ local function out_of_bounds_test(out, expected)
4343
"qux",
4444
})
4545

46-
vim.api.nvim_buf_delete(to_unload, {force = true})
46+
vim.api.nvim_buf_delete(to_unload, { force = true })
4747

4848
-- i have to force it to be out of bounds
4949
list.items[1].context = out
5050

5151
harpoon:list():select(1)
5252

5353
eq({
54-
{ value = file_name, context = expected}
54+
{ value = file_name, context = expected },
5555
}, harpoon:list().items)
56-
5756
end
5857

5958
describe("harpoon", function()
@@ -126,30 +125,30 @@ describe("harpoon", function()
126125
it("out of bounds test: row over", function()
127126
out_of_bounds_test({
128127
row = 5,
129-
col = 3
128+
col = 3,
130129
}, {
131130
row = 4,
132-
col = 3
131+
col = 3,
133132
})
134133
end)
135134

136135
it("out of bounds test: col over", function()
137136
out_of_bounds_test({
138137
row = 4,
139-
col = 4
138+
col = 4,
140139
}, {
141140
row = 4,
142-
col = 3
141+
col = 3,
143142
})
144143
end)
145144

146145
it("out of bounds test: both over", function()
147146
out_of_bounds_test({
148147
row = 5,
149-
col = 4
148+
col = 4,
150149
}, {
151150
row = 4,
152-
col = 3
151+
col = 3,
153152
})
154153
end)
155154

lua/harpoon/test/list_spec.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ describe("list", function()
270270
{ value = "four" },
271271
{ value = "one" },
272272
}, list.items)
273-
274273
end)
275274

276275
it("resolve_displayed", function()

lua/harpoon/test/ui_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ describe("harpoon", function()
7474

7575
it("ui with replace_at", function()
7676
local one_f = os.tmpname()
77-
local one = utils.create_file(one_f, { "one", })
77+
local one = utils.create_file(one_f, { "one" })
7878
local three_f = os.tmpname()
79-
local three = utils.create_file(three_f, { "three", })
79+
local three = utils.create_file(three_f, { "three" })
8080
local context = { row = 1, col = 0 }
8181

8282
eq(0, harpoon:list():length())

0 commit comments

Comments
 (0)