From 998cfcf1fdd0a6830d0fc35f1c054a6f55de1e7f Mon Sep 17 00:00:00 2001 From: Evgeni Chasnovski Date: Fri, 8 Nov 2024 11:52:26 +0200 Subject: [PATCH] test(extra): adjust to pass on Nightly Details: - There seems to be new commands added. - An ongoing options rewrite seems to have made it impossible for `vim.o`/`vim.bo`/`vim.wo` to error for option name that is listed in the `vim.api.nvim_get_all_options_info()`. --- lua/mini/extra.lua | 1 + tests/test_extra.lua | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lua/mini/extra.lua b/lua/mini/extra.lua index 8c7a8e8d..2133b0e9 100644 --- a/lua/mini/extra.lua +++ b/lua/mini/extra.lua @@ -1245,6 +1245,7 @@ MiniExtra.pickers.options = function(local_opts, opts) local has_value, value = pcall(function() return vim.api.nvim_win_call(target_win_id, function() return vim[value_source][item.info.name] end) end) + -- TODO: consider removing after Neovim<=0.10 compatibility is dropped if not has_value then value = '