feat(marks): add navigation (next, previous, select) (#1415)

This commit is contained in:
Kiyan
2022-07-16 10:40:47 +02:00
committed by GitHub
parent b32c88333f
commit 89becc7604
4 changed files with 116 additions and 12 deletions

View File

@@ -335,4 +335,14 @@ function M.focus_file(path)
require("nvim-tree.view").set_cursor { i + 1, 1 }
end
function M.is_in_displayed_buffer(path)
for _, w in pairs(vim.api.nvim_tabpage_list_wins(0)) do
local b = vim.api.nvim_win_get_buf(w)
if vim.api.nvim_buf_get_name(b) == path then
return true
end
end
return false
end
return M