Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

TunkShif/yasm.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

asciicast

switch between diffrent sessions

asciicast

create and delete sessions

Requirements

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.

Inspritions/Similar Projects

Releases

No releases published

Packages

No packages published

Languages