diff --git a/lua/nvim-tree/api.lua b/lua/nvim-tree/api.lua index 5886b6e5..149b6549 100644 --- a/lua/nvim-tree/api.lua +++ b/lua/nvim-tree/api.lua @@ -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 @@ -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 diff --git a/lua/nvim-tree/explorer/filters.lua b/lua/nvim-tree/explorer/filters.lua index a7308060..b490aa04 100644 --- a/lua/nvim-tree/explorer/filters.lua +++ b/lua/nvim-tree/explorer/filters.lua @@ -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 @@ -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