From 8dfa3d9bb6bfbdbbcf2a9cb33c9294678f0bfeb5 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Sun, 26 Nov 2023 21:44:34 +0100 Subject: [PATCH] more sensible preview_cutoff value for Telescope to hide preview on small windows --- lua/weeheavy/plugins/telescope.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/weeheavy/plugins/telescope.lua b/lua/weeheavy/plugins/telescope.lua index 95cfb03..17de6d0 100644 --- a/lua/weeheavy/plugins/telescope.lua +++ b/lua/weeheavy/plugins/telescope.lua @@ -1,11 +1,11 @@ --- Telescope return { "nvim-telescope/telescope.nvim", tag = "0.1.4", dependencies = { - { "nvim-lua/plenary.nvim" } + "nvim-lua/plenary.nvim", }, - config = function(lazy, opts) + --config = function(lazy, opts) + config = function() local telescope = require('telescope') telescope.load_extension('fzf') telescope.load_extension('file_browser') @@ -20,7 +20,7 @@ return { preview_width = 0.4, width = 0.75, height = 0.75, - preview_cutoff = 10, + preview_cutoff = 90, } } },