Neovim: Apply custom Telescope setting to its matching layout

This commit is contained in:
Riyyi
2024-02-24 20:30:44 +01:00
parent 9cc18db3ba
commit d488a323da
2 changed files with 17 additions and 15 deletions
+4 -2
View File
@@ -28,7 +28,9 @@ return {
layout_strategy = "config",
layout_config = {
height = 10, -- amount of results
search_condensed = true,
config = { -- apply settings to the "config" layout
search_condensed = true,
}
},
border = true,
@@ -72,7 +74,7 @@ return {
results.borderchars = { "", "", "", "", "", "", "", "" }
local bs = picker.window.border and 2 or 0
local search_condensed = bs ~= 0 and layout_config.search_condensed and 2 or 0
local search_condensed = bs ~= 0 and layout_config.config.search_condensed and 2 or 0
-- Height
prompt.height = 1