From 404aae7efbf45687feb85bdebcec19e2fe7a42f6 Mon Sep 17 00:00:00 2001 From: Gabriel Crispino Date: Mon, 30 Dec 2024 22:55:23 -0300 Subject: [PATCH] refactor: fix lint issues --- lua/nvim-tree/actions/node/delete-buffer.lua | 2 +- lua/nvim-tree/actions/node/wipe-buffer.lua | 2 +- lua/nvim-tree/api.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/nvim-tree/actions/node/delete-buffer.lua b/lua/nvim-tree/actions/node/delete-buffer.lua index 25cba8ceac3..59df2b834b9 100644 --- a/lua/nvim-tree/actions/node/delete-buffer.lua +++ b/lua/nvim-tree/actions/node/delete-buffer.lua @@ -10,7 +10,7 @@ function M.fn(filename, opts) utils.delete_buffer("delete", filename, opts) end -function M.setup(opts) +function M.setup(_) end return M diff --git a/lua/nvim-tree/actions/node/wipe-buffer.lua b/lua/nvim-tree/actions/node/wipe-buffer.lua index 88839bf4e24..b7c5007cd8e 100644 --- a/lua/nvim-tree/actions/node/wipe-buffer.lua +++ b/lua/nvim-tree/actions/node/wipe-buffer.lua @@ -10,7 +10,7 @@ function M.fn(filename, opts) utils.delete_buffer("wipe", filename, opts) end -function M.setup(opts) +function M.setup(_) end return M diff --git a/lua/nvim-tree/api.lua b/lua/nvim-tree/api.lua index 5d9e40be100..08f6363e3fa 100644 --- a/lua/nvim-tree/api.lua +++ b/lua/nvim-tree/api.lua @@ -290,10 +290,10 @@ Api.node.navigate.opened.prev = wrap_node(actions.moves.item.fn({ where = "prev" ---@class ApiNodeDeleteWipeBufferOpts ---@field force boolean|nil default false -Api.node.buffer.delete = wrap_node(function (node, opts) +Api.node.buffer.delete = wrap_node(function(node, opts) actions.node.delete_buffer.fn(node.absolute_path, opts) end) -Api.node.buffer.wipe = wrap_node(function (node, opts) +Api.node.buffer.wipe = wrap_node(function(node, opts) actions.node.wipe_buffer.fn(node.absolute_path, opts) end)