Something went wrong. Try again.
Library of 45+ independent Lua modules improving Neovim experience with minimal effort nvim-mini.org/mini.nvim
Something went wrong. Try again.
1234567891011121314-- Avoid hit-enter-promptvim.o.cmdheight = 10-- Avoid storing unnecessary data (also sometimes avoid hit-enter-prompt)vim.o.swapfile = false
-- Track session relevant events to test that they are triggered_G.event_log = {}local f = function(ev) table.insert(_G.event_log, ev.event) endlocal events = vim.fn.has('nvim-0.12') == 1 and { 'SessionLoadPre', 'SessionLoadPost' } or { 'SessionLoadPost' }vim.api.nvim_create_autocmd(events, { callback = f })
vim.cmd('set rtp+=.')require('mini.sessions').setup({ autoread = true, autowrite = false, directory = 'tests/dir-sessions/local' })