feat: constrain_cursor option (closes #257)

This commit is contained in:
Steven Arcangeli 2023-12-23 19:16:53 -05:00
parent a60c6d10fd
commit 71b1ef5edf
4 changed files with 22 additions and 1 deletions

View file

@ -41,6 +41,9 @@ local default_config = {
-- Set to true to autosave buffers that are updated with LSP willRenameFiles
-- Set to "unmodified" to only save unmodified buffers
lsp_rename_autosave = false,
-- 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",
-- 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>",