Skip to content

Commit

Permalink
fix: luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed May 3, 2024
1 parent b940437 commit 6e68e6a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lua/precognition/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ local function build_virt_line(marks, line_len)
return virt_line
end

---@param buf integer == bufnr
---@return Precognition.GutterHints
local function build_gutter_hints(buf)
local function build_gutter_hints()
local gutter_hints = {
["G"] = vm.file_end(vim.api.nvim_get_current_buf()),
["gg"] = vm.file_start(),
Expand Down Expand Up @@ -195,7 +194,7 @@ local function on_cursor_hold()
})
end
apply_gutter_hints(
build_gutter_hints(vim.api.nvim_get_current_buf()),
build_gutter_hints(),
vim.api.nvim_get_current_buf()
)

Expand Down Expand Up @@ -225,7 +224,7 @@ end

local function on_buf_edit()
apply_gutter_hints(
build_gutter_hints(vim.api.nvim_get_current_buf()),
build_gutter_hints(),
vim.api.nvim_get_current_buf()
)
end
Expand Down

0 comments on commit 6e68e6a

Please sign in to comment.