From aa087788d7d14ad1fe012cf562ddc1b8c4f29ace Mon Sep 17 00:00:00 2001 From: Garry Filakhtov Date: Tue, 17 Jun 2025 10:23:34 +1000 Subject: [PATCH 1/2] docs: fix renderer.icons.bookmarks_placement parameter, misspelling (#3150) Fix minor documentation issues Add a missing double quotes around the default value for `nvim-tree.renderer.icons.bookmarks_placement` config value and fix spelling of `bookmarked`. --- doc/nvim-tree-lua.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index df57ca03..55fa98b6 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -1066,7 +1066,7 @@ Configuration options for icons. *nvim-tree.renderer.icons.bookmarks_placement* Bookmark icon placement. - Type: `string`, Default: `signcolumn` + Type: `string`, Default: `"signcolumn"` *nvim-tree.renderer.icons.padding.icon* Inserted between icon and filename. @@ -1380,7 +1380,7 @@ delete/wipe. A reload or filesystem event will result in an update. Type: `boolean`, Default: `false` *nvim-tree.filters.no_bookmark* -Do not show files that are not bookarked. +Do not show files that are not bookmarked. Toggle via |nvim-tree-api.tree.toggle_no_bookmark_filter()|, default `M` Enabling this is not useful as there is no means yet to persist bookmarks. Type: `boolean`, Default: `false` From d54a1875a91e1a705795ea26074795210b92ce7f Mon Sep 17 00:00:00 2001 From: Yavorski <3436517+yavorski@users.noreply.github.com> Date: Tue, 17 Jun 2025 09:59:28 +0300 Subject: [PATCH 2/2] fix: invalid window id for popup info window (#3147) --- lua/nvim-tree/actions/node/file-popup.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/nvim-tree/actions/node/file-popup.lua b/lua/nvim-tree/actions/node/file-popup.lua index 6e12b6f8..fb6d022a 100644 --- a/lua/nvim-tree/actions/node/file-popup.lua +++ b/lua/nvim-tree/actions/node/file-popup.lua @@ -57,7 +57,9 @@ end function M.close_popup() if current_popup ~= nil then - vim.api.nvim_win_close(current_popup.winnr, true) + if vim.api.nvim_win_is_valid(current_popup.winnr) then + vim.api.nvim_win_close(current_popup.winnr, true) + end vim.cmd("augroup NvimTreeRemoveFilePopup | au! CursorMoved | augroup END") current_popup = nil