lib: add lznKeySpec example

This commit is contained in:
Ching Pei Yang 2024-08-03 16:38:42 +02:00 committed by Pei Yang Ching
parent 5ed6f11880
commit b5d2a10d25

View file

@ -186,7 +186,12 @@
keys = mkOption {
description = "Lazy-load on key mapping";
default = null;
type = nullOr (oneOf [str (listOf lznKeysSpec) (listOf str)]); # TODO: support lz.n.KeysSpec
type = nullOr (oneOf [str (listOf lznKeysSpec) (listOf str)]);
example = ''
keys = [
{lhs = "<leader>s"; rhs = ":NvimTreeToggle<cr>"; desc = "Toggle NvimTree"}
]
'';
};
# TODO: enabled, beforeAll, colorscheme, priority, load