From c27438b54e03c352234d2fe87f02269dbfc1c858 Mon Sep 17 00:00:00 2001 From: Stefan Herold <794372+Blackjacx@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:39:31 +0200 Subject: [PATCH] Disable session lens Prevent loading Telescope. This prevents telescope to start with autosession (on startup). --- bootstrap/config_dirs/nvim/lua/user/plugins/autosession.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootstrap/config_dirs/nvim/lua/user/plugins/autosession.lua b/bootstrap/config_dirs/nvim/lua/user/plugins/autosession.lua index e13b1c7..8e36f6a 100644 --- a/bootstrap/config_dirs/nvim/lua/user/plugins/autosession.lua +++ b/bootstrap/config_dirs/nvim/lua/user/plugins/autosession.lua @@ -5,7 +5,7 @@ return { vim.o.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions" end, dependencies = { - "nvim-telescope/telescope.nvim", -- Only needed if you want to use sesssion lens + -- "nvim-telescope/telescope.nvim", -- Only needed if you want to use sesssion lens }, keys = { -- Will use Telescope if installed or a vim.ui.select picker otherwise @@ -18,5 +18,8 @@ return { suppressed_dirs = { "/", "~/", "~/Downloads" }, -- log_level = 'debug', auto_restore = true, -- Enables/disables auto restoring session on start + session_lens = { + load_on_setup = false, -- prevent loading telescope with autosession, which is required on startup + }, }, }