From d10e7f442f6cbc46107832dca20e47b21f8c9355 Mon Sep 17 00:00:00 2001 From: Steven Arcangeli Date: Fri, 30 Aug 2024 17:10:53 -0700 Subject: [PATCH] doc: fix recipe for hiding gitignored files --- doc/recipes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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