File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
tests/test-sources/modules Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11{ lib } :
22let
33 inherit ( lib ) optionalAttrs isAttrs types ;
4- inherit ( lib . nixvim ) defaultNullOpts mkNullOrStr ;
4+ inherit ( lib . nixvim ) defaultNullOpts mkNullOrOption mkNullOrStr ;
55in
66rec {
77 # These are the configuration options that change the behavior of each mapping.
2323 desc = mkNullOrStr "A textual description of this keybind, to be shown in which-key, if you have it." ;
2424
2525 buffer = defaultNullOpts . mkBool false "Make the mapping buffer-local. Equivalent to adding `<buffer>` to a map." ;
26+
27+ replace_keycodes = mkNullOrOption types . bool ''
28+ When `expr` is `true`, replace keycodes in the resulting string.
29+
30+ Returning `nil` from the Lua `callback` is equivalent to returning an empty string.
31+ '' ;
2632 } ;
2733
2834 modes = [
Original file line number Diff line number Diff line change 4848 key = "<C-z>" ;
4949 action = "bar" ;
5050 }
51+ {
52+ mode = "n" ;
53+ key = "<C-h>" ;
54+ action . __raw = "function() end" ;
55+ options . replace_keycodes = false ;
56+ }
5157 ] ;
5258 } ;
5359
You can’t perform that action at this time.
0 commit comments