Skip to content

Commit

Permalink
chore: suppress unused-local diagnostic warnings
Browse files Browse the repository at this point in the history
- Added `---@diagnostic disable-next-line: unused-local` to suppress warnings for unused local variables in `callbacks.lua` and `init.lua`.
  • Loading branch information
S1M0N38 committed Sep 14, 2024
1 parent cd488cd commit 1971d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/dante/callbacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ end
---@param opts Options
---@param after_lines string[]
---@return function
---@diagnostic disable-next-line: unused-local
M.on_exit = function(res, req, opts, after_lines)
return function()
vim.api.nvim_buf_set_lines(res.buf, -1, -1, true, after_lines)
Expand Down
1 change: 1 addition & 0 deletions lua/dante/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end

--- Setup the UI for Dante
---@param opts Options: The options for Dante
---@diagnostic disable-next-line: unused-local
local function setup_ui(opts)
-- Diff options
local diff = {
Expand Down

0 comments on commit 1971d5e

Please sign in to comment.