{ lib, config, ... }: lib.mkIf (lib.elem "nvim::undotree" config.machine.pkgs) { programs.nvim-lazy.lazyPlugins = [ { lazy = true; dir = vPlug: vPlug.undotree; keys = [ { bind = "u"; cmd = "UndotreeToggle"; opts = { desc = "Toggle Undotree"; }; } ]; } ]; }