{ lib, config, ... }: lib.mkIf (lib.elem "nvim::tmux-navigate" config.machine.pkgs) { programs.nvim-lazy.lazyPlugins = [ { dir = vPlug: vPlug.vim-tmux-navigator; cmd = [ "TmuxNavigateLeft" "TmuxNavigateDown" "TmuxNavigateUp" "TmuxNavigateRight" "TmuxNavigatePrevious" ]; keys = [ { bind = ""; cmd = "TmuxNavigateLeft"; } { bind = ""; cmd = "TmuxNavigateDown"; } { bind = ""; cmd = "TmuxNavigateUp"; } { bind = ""; cmd = "TmuxNavigateRight"; } { bind = ""; cmd = "TmuxNavigateNext"; } { bind = ""; cmd = "TmuxNavigatePrevious"; } ]; } ]; }