Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrimeagen committed Nov 29, 2023
1 parent b58e3db commit 5d6a39c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lua/harpoon2/buffer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 0 additions & 3 deletions lua/harpoon2/config.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
local Listeners = require("harpoon2.listeners")
local listeners = Listeners.listeners

local M = {}

---@alias HarpoonListItem {value: any, context: any}
Expand Down
3 changes: 3 additions & 0 deletions lua/harpoon2/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lua/harpoon2/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function Harpoon:sync()
self.data:sync()
end

--luacheck: ignore 212/self
function Harpoon:info()
return {
paths = Data.info(),
Expand Down
1 change: 0 additions & 1 deletion lua/harpoon2/test/config_spec.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local List = require("harpoon2.list")
local Config = require("harpoon2.config")
local eq = assert.are.same

Expand Down

0 comments on commit 5d6a39c

Please sign in to comment.