{ ... }: { programs.nixvim = { plugins = { undotree = { enable = true; lazyLoad.settings.cmd = "UndotreeShow"; }; which-key.settings.spec = [ { __unkeyed-1 = "t"; group = "Undotree"; icon = " "; } ]; }; keymaps = [ { key = "th"; action = "UndotreeHide"; options.desc = "Hide undotree"; } { key = "tf"; action = "UndotreeFocus"; options.desc = "Focus undotree"; } { key = "tp"; action = "UndotreePersistUndo"; options.desc = "Persist undo"; } { key = "ts"; action = "UndotreeShow"; options.desc = "Show undotree"; } ]; }; }