feat(api): add api.marks.clear (#1708)

This commit is contained in:
wyrid
2022-10-31 17:46:56 -04:00
committed by GitHub
parent cbb5313f90
commit cd2f7569db
3 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,11 @@ function M.toggle_mark(node)
end
end
function M.clear_marks()
NvimTreeMarks = {}
M.draw()
end
function M.get_mark(node)
return NvimTreeMarks[node.absolute_path]
end