plugins.oil.extraOptions.view_options.is_always_hidden

This function defines what will never be shown, even when show_hidden is set.

Type: null or lua function string

Default: null

Plugin default:

function(name, bufnr)
  return false
end

Declared by:

plugins.oil.extraOptions.view_options.is_hidden_file

This function defines what is considered a ‘hidden’ file.

Type: null or lua function string

Default: null

Plugin default:

function(name, bufnr)
  return vim.startswith(name, ".")
end

Declared by:

plugins.oil.extraOptions.view_options.natural_order

Sort file names in a more intuitive order for humans. Is less performant, so you may want to set to false if you work with large directories.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.oil.extraOptions.view_options.show_hidden

Show files and directories that start with “.”

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.oil.extraOptions.view_options.sort

Sort order can be “asc” or “desc”. See :help oil-columns to see which columns are sortable.

Type: null or (list of ((list of string) or raw lua code))

Default: null

Plugin default:

[
  ["type" "asc"]
  ["name" "asc"]
]

Declared by: