more sensible preview_cutoff value for Telescope to hide preview on small windows

This commit is contained in:
Oliver Ladner 2023-11-26 21:44:34 +01:00
commit 8dfa3d9bb6

View file

@ -1,11 +1,11 @@
-- Telescope
return { return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.4", tag = "0.1.4",
dependencies = { dependencies = {
{ "nvim-lua/plenary.nvim" } "nvim-lua/plenary.nvim",
}, },
config = function(lazy, opts) --config = function(lazy, opts)
config = function()
local telescope = require('telescope') local telescope = require('telescope')
telescope.load_extension('fzf') telescope.load_extension('fzf')
telescope.load_extension('file_browser') telescope.load_extension('file_browser')
@ -20,7 +20,7 @@ return {
preview_width = 0.4, preview_width = 0.4,
width = 0.75, width = 0.75,
height = 0.75, height = 0.75,
preview_cutoff = 10, preview_cutoff = 90,
} }
} }
}, },