feat: add keybinds for basic session-manager-nvim commands

This commit is contained in:
NotAShelf 2023-04-09 16:18:09 +03:00
parent d5f1c57a02
commit 557aa291bd
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22

View file

@ -15,6 +15,14 @@ in {
] ]
++ optionals (cfg.usePicker) ["dressing-nvim"]; ++ optionals (cfg.usePicker) ["dressing-nvim"];
vim.nnoremap = {
"<leader>sl" = ":SessionManager load_session<CR>";
"<leader>sd" = ":SessionManager delete_session<CR>";
"<leader>sc" = ":SessionManager save_current_session<CR>";
"<leader>slt" = ":SessionManager load_last_session<CR>";
# TODO: load_current_dir_session
};
vim.luaConfigRC.nvim-session-manager = nvim.dag.entryAnywhere '' vim.luaConfigRC.nvim-session-manager = nvim.dag.entryAnywhere ''
local Path = require('plenary.path') local Path = require('plenary.path')
local sm = require('session_manager.config') local sm = require('session_manager.config')