From 5101b0774b02d7962f42a3f27ecc5ddc8f1c161b Mon Sep 17 00:00:00 2001 From: Lord Of Nougate Date: Tue, 5 Sep 2023 13:01:56 +0200 Subject: [PATCH 1/2] Add sessions management plugins --- lua/sevi-kun/packer.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/sevi-kun/packer.lua b/lua/sevi-kun/packer.lua index daec258..4b823f6 100644 --- a/lua/sevi-kun/packer.lua +++ b/lua/sevi-kun/packer.lua @@ -15,6 +15,13 @@ return require('packer').startup(function(use) -- useful + use { 'rmagatti/auto-session' } + + use { + 'rmagatti/session-lens', + requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'}, + } + use { 'nvim-telescope/telescope.nvim', tag = '0.1.2', requires = 'nvim-lua/plenary.nvim' From 835b0543d4ba41f5290710c951206612b695d094 Mon Sep 17 00:00:00 2001 From: Lord Of Nougate Date: Tue, 5 Sep 2023 13:03:02 +0200 Subject: [PATCH 2/2] Upload sessions plugin config --- after/plugin/sessions.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 after/plugin/sessions.lua diff --git a/after/plugin/sessions.lua b/after/plugin/sessions.lua new file mode 100644 index 0000000..12bd07e --- /dev/null +++ b/after/plugin/sessions.lua @@ -0,0 +1,13 @@ +require("auto-session").setup { + log_level = "error", + auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/"}, +} + +require('session-lens').setup({ + path_display = {'shorten'}, + theme_conf = { border = true }, + previewer = false, +}) + + +vim.keymap.set('n', 'ss', ":SearchSession")