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.
switch between diffrent sessions
create and delete sessions
- Neovim
> 0.5
- telescope.nvim
- plenary.nvim
- ripgrep
Using packer.nvim
use 'TunkShif/yasm.nvim'
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.
This is my first time trying to write (n)vim plugin. The porject is still under development, so it may be bug-prone.