(local whichkey (require :which-key)) (whichkey.setup) (macro wmap [k op desc] {1 (.. " " k) 2 op :desc desc}) (macro gmap [k group] {1 (.. " " k) :group group}) (local mappings [ ;;common (wmap :f "Neotree toggle" "fs") (wmap :w "WinShift" "win shift") (wmap :t "ToggleTerm direction=horizontal" "hterm") ;;quick (gmap :q "quick") (wmap :qs "\"+y" "system grab") (wmap :ql "0v$" "line") ]) (tset mappings :mode [:n :v]) (tset mappings :silent true) (tset mappings :noremap true) (tset mappings :nowait true) (whichkey.add mappings)