Skip to content

test(ALL): on Nightly nvim_win_get_config () always returns "style"#2295

Open
abeldekat wants to merge 1 commit intonvim-mini:mainfrom
abeldekat:test_map_fix
Open

test(ALL): on Nightly nvim_win_get_config () always returns "style"#2295
abeldekat wants to merge 1 commit intonvim-mini:mainfrom
abeldekat:test_map_fix

Conversation

@abeldekat
Copy link
Member

@abeldekat abeldekat commented Mar 4, 2026

See PR 38122 in neovim/neovim

@echasnovski
Copy link
Member

Thanks for the PR!

Couple of notes about the commit message (I should probably document that in "MAINTAINING.md"...):

  • Please use "Nightly" in commit message and not "nightly". This makes it consistent across commits and might help when searching through them.
  • All function names should be in ` quotes. Ideally with () suffix, but sometimes okay to omit if there is no other good way to make first the title message shorter.
  • Using #38122 notation means that it links to issue/PR/discussion in this repository. Linking to other repository is done like neovim/neovim#38122, but please don't link like this in commit message because it will result in several mentions in that issue/PR (like after rebasing and similar). So in this case I usually prefer something like "See PR 38112 in neovim/neovim".
  • Please preface any extra details in the commit body with "Details" line. This will potentially make it easier to parse commits for details.

As there is another failing test on Nightly, could you please take a look at it? I have a feeling it might be an actual Neovim regression, though, but let's hope it is not.

@abeldekat
Copy link
Member Author

I resubmitted and will look at the other failing test

@echasnovski
Copy link
Member

So in this case I usually prefer something like "See PR 38112 in neovim/neovim".

Wait, it is 38122, not 38112. Sorry.

@abeldekat
Copy link
Member Author

New push....)

@abeldekat
Copy link
Member Author

@echasnovski, the following test fails for mini.files:

FAIL in tests/test_files.lua | Events | `MiniFilesWindowUpdate` can customize internally set window config parts:
  Failed expectation for screenshot equality to reference at "tests/screenshots/tests-test_files.lua---Events---`MiniFilesWindowUpdate`-can-customize-internally-set-window-config-parts"
  Cause: different `attr` cell at line 2 column 56, reference = "6", observed = "5"

This is also caused by PR 38122 in neovim/neovim: "fix(api): return "style" in nvim_win_get_config()"

The preceding commit(84d84) from PR 38138 "fix(window): style=minimal window loses local options when switching buffers#38138" passes

@echasnovski
Copy link
Member

echasnovski commented Mar 4, 2026

This is also caused by PR 38122 in neovim/neovim: "fix(api): return "style" in nvim_win_get_config()"

I see. Still needs to be adjusted, as the test is about for the officially documented example in MiniFiles-examples. Probably explicitly setting config.style = nil should be enough. Otherwise it will not show cursorline in explorer windows, it seems.

@abeldekat
Copy link
Member Author

Still needs to be adjusted...

Done

@echasnovski
Copy link
Member

Still needs to be adjusted...

Done

Thanks! Not a big problem to adjust in 'mini.files', but I wonder if this is better be reverted upstream.

See PR 38122 in neovim/neovim

Details:
- This also affects the documentation as one test is about the
officially documented example in MiniFiles-examples
@abeldekat abeldekat changed the title test(map): on nightly nvim_win_get_config now always returns "style" test(ALL): on Nightly nvim_win_get_config () always returns "style" Mar 4, 2026
@echasnovski
Copy link
Member

Let's wait for the resolution of neovim/neovim#38152. The 'mini.files' fix (which is a bit flawed in its current form, by the way) won't be needed if that is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants