Skip to content

plugins/barbar: add nullOr workaround for keymaps lua warning#3961

Merged
MattSturgeon merged 1 commit intonix-community:mainfrom
MattSturgeon:barbar-keymap
Nov 21, 2025
Merged

plugins/barbar: add nullOr workaround for keymaps lua warning#3961
MattSturgeon merged 1 commit intonix-community:mainfrom
MattSturgeon:barbar-keymap

Conversation

@MattSturgeon
Copy link
Member

Follow-up to #3960.

Fixes the keymap lua deprecation warning for plugins.barbar.keymaps.*.

These options are the only ones that both support the deprecated lua field and use a nullOr submodule type, making them the only ones affected.

Currently, types.nullOr does not propagate the new valueMeta attribute added by v2 check and merge, but types.either does.

Since the warning logic in modules/keymaps.nix depends on valueMeta, this PR re-implements nullOr using types.either as a local workaround.

Currently, `types.either` has support for the new valueMeta attribute
added by v2 check and merge, while `types.nullOr` does not.

The `lua` option deprecation warning implemented in
`modules/keymaps.nix` requires `valueMeta`, so re-implement `nullOr`
using `types.either` as a workaround.
@nixvim-ci nixvim-ci bot requested a review from GaetanLepage November 21, 2025 09:23
@MattSturgeon MattSturgeon added this pull request to the merge queue Nov 21, 2025
Merged via the queue into nix-community:main with commit a635b56 Nov 21, 2025
4 checks passed
@MattSturgeon MattSturgeon deleted the barbar-keymap branch November 21, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants