mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-16 11:00:23 +00:00
fix: tests were breaking due to logging
This commit is contained in:
parent
c53305c2d0
commit
dfcb8488df
@ -170,7 +170,14 @@ function M.get_default_config()
|
|||||||
if item then
|
if item then
|
||||||
local pos = vim.api.nvim_win_get_cursor(0)
|
local pos = vim.api.nvim_win_get_cursor(0)
|
||||||
|
|
||||||
Logger:log("config_default#BufLeave updating position", bufnr, bufname, item, "to position", pos)
|
Logger:log(
|
||||||
|
"config_default#BufLeave updating position",
|
||||||
|
bufnr,
|
||||||
|
bufname,
|
||||||
|
item,
|
||||||
|
"to position",
|
||||||
|
pos
|
||||||
|
)
|
||||||
|
|
||||||
item.context.row = pos[1]
|
item.context.row = pos[1]
|
||||||
item.context.col = pos[2]
|
item.context.col = pos[2]
|
||||||
|
@ -19,7 +19,8 @@ function HarpoonLog:log(...)
|
|||||||
|
|
||||||
local msg = {}
|
local msg = {}
|
||||||
for i = 1, select("#", ...) do
|
for i = 1, select("#", ...) do
|
||||||
table.insert(msg, vim.inspect(select(i, ...)))
|
local item = select(i, ...)
|
||||||
|
table.insert(msg, vim.inspect(item))
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(self.lines, table.concat(msg, " "))
|
table.insert(self.lines, table.concat(msg, " "))
|
||||||
|
@ -38,7 +38,7 @@ describe("list", function()
|
|||||||
local config = Config.merge_config({
|
local config = Config.merge_config({
|
||||||
foo = {
|
foo = {
|
||||||
select_with_nil = true,
|
select_with_nil = true,
|
||||||
select = function(list_item, options)
|
select = function(list_item, _, options)
|
||||||
foo_selected = { list_item, options }
|
foo_selected = { list_item, options }
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user