diff --git a/README.md b/README.md index 8aa5649..bce16b8 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,20 @@ require('dressing').setup({ -- Change default highlight groups (see :help winhl) winhighlight = "", + -- Set to `false` to disable + mappings = { + n = { + [""] = "Close", + [""] = "Confirm", + }, + i = { + [""] = "Close", + [""] = "Confirm", + [""] = "HistoryPrev", + [""] = "HistoryNext", + }, + }, + override = function(conf) -- This is the config that will be passed to nvim_open_win. -- Change values here to customize the layout @@ -235,6 +249,13 @@ require('dressing').setup({ max_height = 0.9, min_height = { 10, 0.2 }, + -- Set to `false` to disable + mappings = { + [""] = "Close", + [""] = "Close", + [""] = "Confirm", + }, + override = function(conf) -- This is the config that will be passed to nvim_open_win. -- Change values here to customize the layout diff --git a/doc/dressing.txt b/doc/dressing.txt index 9125b27..c8809e6 100644 --- a/doc/dressing.txt +++ b/doc/dressing.txt @@ -41,6 +41,20 @@ Configure dressing.nvim by calling the setup() function. -- Change default highlight groups (see :help winhl) winhighlight = "", + -- Set to `false` to disable + mappings = { + n = { + [""] = "Close", + [""] = "Confirm", + }, + i = { + [""] = "Close", + [""] = "Confirm", + [""] = "HistoryPrev", + [""] = "HistoryNext", + }, + }, + override = function(conf) -- This is the config that will be passed to nvim_open_win. -- Change values here to customize the layout @@ -125,6 +139,13 @@ Configure dressing.nvim by calling the setup() function. max_height = 0.9, min_height = { 10, 0.2 }, + -- Set to `false` to disable + mappings = { + [""] = "Close", + [""] = "Close", + [""] = "Confirm", + }, + override = function(conf) -- This is the config that will be passed to nvim_open_win. -- Change values here to customize the layout