mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 01:50:27 +00:00
fix: lint
This commit is contained in:
parent
b58e3db559
commit
5d6a39c945
@ -4,7 +4,8 @@ local M = {}
|
||||
local HARPOON_MENU = "__harpoon-menu__"
|
||||
|
||||
-- simple reason here is that if we are deving harpoon, we will create several
|
||||
-- ui objects, each with their own buffer, which will cause the name to be duplicated and then we will get a vim error on nvim_buf_set_name
|
||||
-- ui objects, each with their own buffer, which will cause the name to be
|
||||
-- duplicated and then we will get a vim error on nvim_buf_set_name
|
||||
local harpoon_menu_id = 0
|
||||
|
||||
local function get_harpoon_menu_name()
|
||||
|
@ -1,6 +1,3 @@
|
||||
local Listeners = require("harpoon2.listeners")
|
||||
local listeners = Listeners.listeners
|
||||
|
||||
local M = {}
|
||||
|
||||
---@alias HarpoonListItem {value: any, context: any}
|
||||
|
@ -26,9 +26,12 @@ function M.set_data_path(path)
|
||||
end
|
||||
|
||||
local function has_keys(t)
|
||||
|
||||
-- luacheck: ignore 512
|
||||
for _ in pairs(t) do
|
||||
return true
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
|
@ -127,6 +127,7 @@ function Harpoon:sync()
|
||||
self.data:sync()
|
||||
end
|
||||
|
||||
--luacheck: ignore 212/self
|
||||
function Harpoon:info()
|
||||
return {
|
||||
paths = Data.info(),
|
||||
|
@ -1,4 +1,3 @@
|
||||
local List = require("harpoon2.list")
|
||||
local Config = require("harpoon2.config")
|
||||
local eq = assert.are.same
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user