diff --git a/modules/session/nvim-session-manager/config.nix b/modules/session/nvim-session-manager/config.nix index 695346e..b2ce8b7 100644 --- a/modules/session/nvim-session-manager/config.nix +++ b/modules/session/nvim-session-manager/config.nix @@ -15,6 +15,14 @@ in { ] ++ optionals (cfg.usePicker) ["dressing-nvim"]; + vim.nnoremap = { + "sl" = ":SessionManager load_session"; + "sd" = ":SessionManager delete_session"; + "sc" = ":SessionManager save_current_session"; + "slt" = ":SessionManager load_last_session"; + # TODO: load_current_dir_session + }; + vim.luaConfigRC.nvim-session-manager = nvim.dag.entryAnywhere '' local Path = require('plenary.path') local sm = require('session_manager.config')