From e8c8f7f38ca1ced86ee24f5df34ce3f46ddd3620 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 8 Oct 2024 15:06:40 -0500 Subject: [PATCH] plugins/rest: update v3 options --- plugins/by-name/rest/default.nix | 36 +++++++++++++++----------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/plugins/by-name/rest/default.nix b/plugins/by-name/rest/default.nix index 960d5913..f22d87ab 100644 --- a/plugins/by-name/rest/default.nix +++ b/plugins/by-name/rest/default.nix @@ -282,6 +282,22 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin { ''; }; + ui = { + winbar = defaultNullOpts.mkBool true '' + Whether to set winbar to result panes. + ''; + + keybinds = + defaultNullOpts.mkAttrsOf types.anything + { + prev = "H"; + next = "L"; + } + '' + Mappings for result panes. + ''; + }; + highlight = { enable = defaultNullOpts.mkBool true '' Whether current request highlighting is enabled or not. @@ -295,25 +311,6 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin { _log_level = defaultNullOpts.mkNullableWithRaw types.logLevel "warn" '' The logging level name, see `:h vim.log.levels`. ''; - - keybinds = - defaultNullOpts.mkListOf (with types; listOf str) - [ - [ - "rr" - "Rest run" - "Run request under the cursor" - ] - [ - "rl" - "Rest run last" - "Re-run latest request" - ] - ] - '' - Declare some keybindings. - Format: list of 3 strings lists: key, action and description. - ''; }; settingsExample = { @@ -389,6 +386,7 @@ lib.nixvim.neovim-plugin.mkNeovimPlugin { "env_pattern" "env_edit_command" "encode_url" + "keybinds" "skip_ssl_verification" [ "logs"