mirror of
https://github.com/ThePrimeagen/harpoon.git
synced 2025-07-14 10:00:29 +00:00
fix: lint
This commit is contained in:
parent
b58e3db559
commit
5d6a39c945
@ -4,7 +4,8 @@ local M = {}
|
|||||||
local HARPOON_MENU = "__harpoon-menu__"
|
local HARPOON_MENU = "__harpoon-menu__"
|
||||||
|
|
||||||
-- simple reason here is that if we are deving harpoon, we will create several
|
-- 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 harpoon_menu_id = 0
|
||||||
|
|
||||||
local function get_harpoon_menu_name()
|
local function get_harpoon_menu_name()
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
local Listeners = require("harpoon2.listeners")
|
|
||||||
local listeners = Listeners.listeners
|
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
---@alias HarpoonListItem {value: any, context: any}
|
---@alias HarpoonListItem {value: any, context: any}
|
||||||
|
@ -26,9 +26,12 @@ function M.set_data_path(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function has_keys(t)
|
local function has_keys(t)
|
||||||
|
|
||||||
|
-- luacheck: ignore 512
|
||||||
for _ in pairs(t) do
|
for _ in pairs(t) do
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -127,6 +127,7 @@ function Harpoon:sync()
|
|||||||
self.data:sync()
|
self.data:sync()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--luacheck: ignore 212/self
|
||||||
function Harpoon:info()
|
function Harpoon:info()
|
||||||
return {
|
return {
|
||||||
paths = Data.info(),
|
paths = Data.info(),
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
local List = require("harpoon2.list")
|
|
||||||
local Config = require("harpoon2.config")
|
local Config = require("harpoon2.config")
|
||||||
local eq = assert.are.same
|
local eq = assert.are.same
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user