Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo
  • Loading branch information
gracepetryk committed May 6, 2025
commit cb37953cdc6c1c6d12e21c74bab4b84f9b0f302c
4 changes: 2 additions & 2 deletions lua/nvim-tree/api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ local function wrap_node_or_nil(fn)
end
end

---Invoke a member"s method on the singleton explorer.
---Invoke a member's method on the singleton explorer.
---Print error when setup not called.
---@param explorer_member string explorer member name
---@param member_method string method name to invoke on member
Expand All @@ -120,7 +120,7 @@ local function wrap_explorer_filter_function(filter_api_method)
end)
end

---Invoke a member"s method on the singleton explorer.
---Invoke a member's method on the singleton explorer.
---Print error when setup not called.
---@param explorer_member string explorer member name
---@param member_method string method name to invoke on member
Expand Down
6 changes: 3 additions & 3 deletions lua/nvim-tree/explorer/filters.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ function Filters:bookmark(path)
end

if path_type == "directory" then
-- check if path is mark"s parent
-- check if path is mark's parent
if vim.fn.stridx(mark, mark_parent) == 0 then
return false
end
end
if mark_type == "directory" then
-- check if mark is path"s parent
-- check if mark is path's parent
local path_parent = utils.path_add_trailing(mark)
if vim.fn.stridx(path, path_parent) == 0 then
return false
Expand All @@ -211,7 +211,7 @@ end
---@param path string
---@return boolean
function Filters:custom(path)
-- filter user"s custom function
-- filter user's custom function
if type(self.custom_function) == "function" then
return self.custom_function(path)
end
Expand Down
Loading