plugins.oil.extraOptions.cleanup_delay_ms

Oil will automatically delete hidden buffers after this delay. You can set the delay to false to disable cleanup entirely. Note that the cleanup process only starts when none of the oil buffers are currently displayed.

Type: null or unsigned integer, meaning >=0, or value false (singular enum)

Default: null

Plugin default: 2000

Declared by:

plugins.oil.extraOptions.columns

Columns can be specified as a string to use default arguments (e.g. "icon"), or as a table to pass parameters (e.g. {"size", highlight = "Special"})

Default: ["icon"]

Type: list of (string or attribute set of anything or raw lua code)

Default: [ ]

Example:

[
  "type"
  {
    __unkeyed = "icon";
    default_file = "bar";
    directory = "dir";
    highlight = "Foo";
  }
  "size"
  "permissions"
]

Declared by:

plugins.oil.extraOptions.constrain_cursor

Constrain the cursor to the editable parts of the oil buffer. Set to false to disable, or “name” to keep it on the file names.

Type: null or string or value false (singular enum)

Default: null

Plugin default: editable

Declared by:

plugins.oil.extraOptions.default_file_explorer

Oil will take over directory buffers (e.g. vim . or :e src/). Set to false if you still want to use netrw.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.oil.extraOptions.delete_to_trash

Deleted files will be removed with the trash_command (below).

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.oil.extraOptions.experimental_watch_for_changes

Set to true to watch the filesystem for changes and reload oil.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.oil.extraOptions.keymaps

Keymaps in oil buffer. Can be any value that vim.keymap.set accepts OR a table of keymap options with a callback (e.g. { callback = function() ... end, desc = "", mode = "n" }). Additionally, if it is a string that matches “actions.<name>”, it will use the mapping at require("oil.actions").<name>. Set to false to remove a keymap. See :help oil-actions for a list of all available actions.

Type: null or (attribute set of (string or attribute set of anything or value false (singular enum) or raw lua code))

Default: null

Plugin default:

{
  "g?" = "actions.show_help";
  "<CR>" = "actions.select";
  "<C-s>" = "actions.select_vsplit";
  "<C-h>" = "actions.select_split";
  "<C-t>" = "actions.select_tab";
  "<C-p>" = "actions.preview";
  "<C-c>" = "actions.close";
  "<C-l>" = "actions.refresh";
  "-" = "actions.parent";
  "_" = "actions.open_cwd";
  "`" = "actions.cd";
  "~" = "actions.tcd";
  "gs" = "actions.change_sort";
  "gx" = "actions.open_external";
  "g." = "actions.toggle_hidden";
  "g\\" = "actions.toggle_trash";
}

Declared by:

plugins.oil.extraOptions.keymaps_help

Configuration for the floating keymaps help window.

Type: null or (attribute set of (anything or raw lua code))

Default: null

Plugin default: {border = "rounded";}

Declared by:

plugins.oil.extraOptions.prompt_save_on_select_new_entry

Selecting a new/moved/renamed file or directory will prompt you to save changes first.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.oil.extraOptions.skip_confirm_for_simple_edits

Skip the confirmation popup for simple operations.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.oil.extraOptions.use_default_keymaps

Set to false to disable all of the above keymaps.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: