mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-25 19:51:06 +01:00
plugins/barbar: add nullOr workaround for keymaps lua warning
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.
This commit is contained in:
parent
d0b0b75a13
commit
a635b56894
3 changed files with 28 additions and 12 deletions
|
|
@ -69,7 +69,6 @@ in
|
|||
options.plugins.tmux-navigator.keymaps.valueMeta.list
|
||||
|
||||
# NOTE: barbar added `mapOptionSubmodule` support shortly _before_ branching off 24.05
|
||||
# FIXME: types.nullOr doesn't propagate valueMeta as it doesn't implement v2 check+merge
|
||||
(lib.mapAttrsToList (name: opt: opt.valueMeta) (
|
||||
builtins.removeAttrs options.plugins.barbar.keymaps [ "silent" ]
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue