From dd51e696db430c7ddc78394fb69eca97a8fc3293 Mon Sep 17 00:00:00 2001 From: serxoz Date: Fri, 25 Nov 2022 09:44:46 +0100 Subject: [PATCH] autosessions --- lua/serxoz/packer.lua | 11 +++++++++++ plugin/packer_compiled.lua | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/lua/serxoz/packer.lua b/lua/serxoz/packer.lua index d06a184..cc6de20 100644 --- a/lua/serxoz/packer.lua +++ b/lua/serxoz/packer.lua @@ -76,4 +76,15 @@ return require("packer").startup(function(use) "windwp/nvim-autopairs", config = function() require("nvim-autopairs").setup {} end } + + -- Autosessions (save sessions) + use { + 'rmagatti/auto-session', + config = function() + require("auto-session").setup { + log_level = "error", + auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/"}, + } + end + } end) diff --git a/plugin/packer_compiled.lua b/plugin/packer_compiled.lua index d3c60fa..0e801c2 100644 --- a/plugin/packer_compiled.lua +++ b/plugin/packer_compiled.lua @@ -79,6 +79,12 @@ _G.packer_plugins = { path = "/home/sergio/.local/share/nvim/site/pack/packer/start/LuaSnip", url = "https://github.com/L3MON4D3/LuaSnip" }, + ["auto-session"] = { + config = { "\27LJ\2\n”\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\1\5\0\0\a~/\15~/Projects\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\0" }, + loaded = true, + path = "/home/sergio/.local/share/nvim/site/pack/packer/start/auto-session", + url = "https://github.com/rmagatti/auto-session" + }, ["bufferline.nvim"] = { loaded = true, path = "/home/sergio/.local/share/nvim/site/pack/packer/start/bufferline.nvim", @@ -243,6 +249,10 @@ time([[Defining packer_plugins]], false) time([[Config for nvim-autopairs]], true) try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs") time([[Config for nvim-autopairs]], false) +-- Config for: auto-session +time([[Config for auto-session]], true) +try_loadstring("\27LJ\2\n”\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\1\5\0\0\a~/\15~/Projects\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\0", "config", "auto-session") +time([[Config for auto-session]], false) _G._packer.inside_compile = false if _G._packer.needs_bufread == true then