diff --git a/doc/recipes.md b/doc/recipes.md index 7627a13..b2b875b 100644 --- a/doc/recipes.md +++ b/doc/recipes.md @@ -84,8 +84,8 @@ end require("oil").setup({ view_options = { - is_hidden_file = function(name, _) - local dir = require("oil").get_current_dir() + is_hidden_file = function(name, bufnr) + local dir = require("oil").get_current_dir(bufnr) local is_dotfile = vim.startswith(name, ".") and name ~= ".." -- if no local directory (e.g. for ssh connections), just hide dotfiles if not dir then return is_dotfile end