🌱 tiny neovim plugin keeping your session safe
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: switch session on global dir change

robin 5ca4fe44 ca141159

+16
+16
plugin/nivvie.lua
··· 20 20 end, 21 21 }) 22 22 23 + vim.api.nvim_create_autocmd({ 'DirChangedPre' }, { 24 + group = group, 25 + pattern = 'global', 26 + callback = function() 27 + require('nivvie').save() 28 + end, 29 + }) 30 + 31 + vim.api.nvim_create_autocmd({ 'DirChanged' }, { 32 + group = group, 33 + pattern = 'global', 34 + callback = function() 35 + require('nivvie').restore() 36 + end, 37 + }) 38 + 23 39 vim.schedule(function() 24 40 vim.api.nvim_create_user_command('Nivvie', function(args) 25 41 if args.fargs[1] == 'save' then