mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-28 05:01:03 +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
|
|
@ -141,8 +141,7 @@
|
|||
(expect "any" "- `keymapsOnEvents.InsertEnter.\"[definition 1-entry 1]\".lua' is defined in `test-module'")
|
||||
(expect "any" "- `plugins.lsp.keymaps.extra.\"[definition 1-entry 1]\".lua' is defined in `test-module'")
|
||||
(expect "any" "- `plugins.tmux-navigator.keymaps.\"[definition 1-entry 1]\".lua' is defined in `test-module'")
|
||||
# FIXME: nullOr breaks our warning
|
||||
# (expect "any" "- `plugins.barbar.keymaps.first.lua' is defined in `test-module'")
|
||||
(expect "any" "- `plugins.barbar.keymaps.first.lua' is defined in `test-module'")
|
||||
];
|
||||
|
||||
test.runNvim = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue