From 6f6f77f7a76f128d69d089f79d7fe12b014cb760 Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Wed, 4 Mar 2026 12:26:25 +0100 Subject: [PATCH] test(files): on nightly nvim_win_get_config now always returns "style" See PR 38122 in neovim/neovim Details: - This also affects the documentation as the test is about the officially documented example in MiniFiles-examples --- doc/mini-files.txt | 3 +++ lua/mini/files.lua | 3 +++ tests/test_files.lua | 2 ++ 3 files changed, 8 insertions(+) diff --git a/doc/mini-files.txt b/doc/mini-files.txt index e567b235..1342aba6 100644 --- a/doc/mini-files.txt +++ b/doc/mini-files.txt @@ -405,6 +405,9 @@ updated internally. Use `MiniFilesWindowUpdate` event for them: >lua -- Ensure fixed height config.height = 10 + -- Ensure style + config.style = nil + -- Ensure no title padding local n = #config.title config.title[1][1] = config.title[1][1]:gsub('^ ', '') diff --git a/lua/mini/files.lua b/lua/mini/files.lua index 1776a65c..3e91ba51 100644 --- a/lua/mini/files.lua +++ b/lua/mini/files.lua @@ -399,6 +399,9 @@ --- -- Ensure fixed height --- config.height = 10 --- +--- -- Ensure style +--- config.style = nil +--- --- -- Ensure no title padding --- local n = #config.title --- config.title[1][1] = config.title[1][1]:gsub('^ ', '') diff --git a/tests/test_files.lua b/tests/test_files.lua index 1af238b3..ac834701 100644 --- a/tests/test_files.lua +++ b/tests/test_files.lua @@ -5523,6 +5523,8 @@ T['Events']['`MiniFilesWindowUpdate` can customize internally set window config local config = vim.api.nvim_win_get_config(args.data.win_id) -- Ensure fixed height config.height = 5 + -- Ensure style + config.style = nil -- Ensure title padding local n = #config.title config.title[1][1] = config.title[1][1]:gsub('^ ', '')