diff --git a/README.md b/README.md index 2b8791d6..b8b67906 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,10 @@ require("oil").setup({ view_options = { -- Show files and directories that start with "." show_hidden = false, + -- This function defines what is considered a "hidden" file + is_hidden_file = function(name, bufnr) + return vim.startswith(name, ".") + end, }, -- Configuration for the floating window in oil.open_float float = { diff --git a/doc/oil.txt b/doc/oil.txt index bc9e68a4..61b427ab 100644 --- a/doc/oil.txt +++ b/doc/oil.txt @@ -67,6 +67,10 @@ OPTIONS *oil-option view_options = { -- Show files and directories that start with "." show_hidden = false, + -- This function defines what is considered a "hidden" file + is_hidden_file = function(name, bufnr) + return vim.startswith(name, ".") + end, }, -- Configuration for the floating window in oil.open_float float = {