fix: lint

This commit is contained in:
mpaulson 2023-11-28 20:40:54 -07:00
parent b58e3db559
commit 5d6a39c945
5 changed files with 6 additions and 5 deletions

View File

@ -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()

View File

@ -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}

View File

@ -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

View File

@ -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(),

View File

@ -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