feat: experimental option to watch directory for changes (#292)

This commit is contained in:
Steven Arcangeli 2024-02-19 23:24:44 -08:00
parent e27cc4e138
commit bcfe7d1ec5
5 changed files with 85 additions and 2 deletions

View file

@ -43,6 +43,8 @@ local default_config = {
-- 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
constrain_cursor = "editable",
-- Set to true to watch the filesystem for changes and reload oil
experimental_watch_for_changes = false,
-- 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>",