From 270c95556cad96d18ca547d86ae65927334b108b Mon Sep 17 00:00:00 2001 From: kang <1115610574@qq.com> Date: Sat, 6 May 2023 13:37:12 +0800 Subject: [PATCH] fix: type annotations for utils.is_nvim_tree_buf (#2180) Co-authored-by: Alexander Courtis --- lua/nvim-tree/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-tree/utils.lua b/lua/nvim-tree/utils.lua index a8c472b9..affe4ea6 100644 --- a/lua/nvim-tree/utils.lua +++ b/lua/nvim-tree/utils.lua @@ -403,7 +403,7 @@ end ---Is the buffer named NvimTree_[0-9]+ a tree? filetype is "NvimTree" or not readable file. ---This is cheap, as the readable test should only ever be needed when resuming a vim session. ----@param bufnr number may be 0 or nil for current +---@param bufnr number|nil may be 0 or nil for current ---@return boolean function M.is_nvim_tree_buf(bufnr) if bufnr == nil then