Closed reglin2000 closed 10 months ago
I think you can achieve this behaviour (or something close to it), by leaving the border
as true
and setting borderchars
to be a table with 8 values of " "
.
Thanks, I had known this configuration before creating this issue. However, I still prefer border = false
when I write some code on my notebook to get more candidate item or more lines in preview window.
Can confirm, if border is set to false the ideal solution is to expand either the preview or the results window. I too prefer border = false
because the borders take up unnecessary screen real estate and removing them should free up a couple of lines for preview/results window.
If there is a particular behaviour that you want, then you can define a custom layout strategy with that behaviour.
I would suggest looking at how vertical
is defined (as it seems to be closest to what you want) and how center
is defined (as it puts the prompt window directly next to the results when border
is disabled)
I am leaning towards just putting up with this behavior, because I think I value having the extra real estate for content more than the ugliness of seeing spurious characters appear in the gaps.
That said, agreed that the solution is probably to eliminate these gaps and then to possibly give different background colors to different telescope UI elements.
Meanwhile turning off borders and linking the TelescopeNormal hl to NormalFloat gets me to something usable for now.
this PR https://github.com/nvim-telescope/telescope.nvim/pull/2572 (on master branch) adds support for fully customizable themes including a "compact"/"fused" theme without gaps between the telescope windows.
Here's some code to get started. https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#fused-layout
Description
Hello. As the title, when I set
layout_strategy = 'vertical'
andborder = false
simultaneously, there are two transparent lines. The first transparent line is between preview window and result window while the second one is between result window and prompt window.Neovim version
Operating system and version
Debian 11 on WSL
Telescope version / branch / rev
0.1.1
checkhealth telescope
Steps to reproduce
nvim -nu minimal.lua
:Telescope find_file
Expected behavior
There is not any transparent line between each window. Maybe like this: (Note:
prompt_position = 'top'
is set in this picture)Actual behavior
Minimal config