diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index a98fe31e..59d1bdca 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -1067,7 +1067,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. @@ -1381,7 +1381,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` 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