Yet Another Session Manager [WIP]
The name just says it all, yasm.nvim
is just another simple session manager plugin which make use of the native vim session.
It is built on top of telescope.nvim plugin to make it easier to switch between diffrent sessions.
Previews
switch between diffrent sessions
create and delete sessions
Requirements
- Neovim
> 0.5
- telescope.nvim
- plenary.nvim
- ripgrep
Get Started
Installation
Using packer.nvim
use 'TunkShif/yasm.nvim'
Setup
yasm.nvim
does not come with default key mappings, you have to set it up mannualy.
require('yasm').setup {
-- optional session directory settings
-- default to `stdpath('data')/sessions`
session_dir = "/path/to/your/session_dir"
}
require('telescope').load_extension('sessions')
vim.cmd [[
nnoremap <Leader>ss <CMD>lua require('yasm').save_session()<CR>
nnoremap <Leader>sl <CMD>Telescope sessions<CR>
]]
In the telescope popup window, you can use d
in NORMAL mode or C-d
in INSERT mode to delete the selected session.
Disclaimer
This is my first time trying to write (n)vim plugin. The porject is still under development, so it may be bug-prone.