summaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-11-26 21:43:51 +0000
committerGitHub <noreply@github.com>2021-11-26 22:43:51 +0100
commitb415e862bf248d66c40e242de4a0c76c68e278f1 (patch)
tree0c4a5b6331a7057807cb60d25eb9a162a6f77b6c /ftplugin
parenta8e9aa58a4943557cc5711aa6f36d1940e5cde5e (diff)
fix: set `nowrap` in prompt buffer (#1499)
- fixes `strdisplaywidth` calculations for `dynamic_preview_title`
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/TelescopePrompt.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/ftplugin/TelescopePrompt.lua b/ftplugin/TelescopePrompt.lua
index ed99898..ce7b6c1 100644
--- a/ftplugin/TelescopePrompt.lua
+++ b/ftplugin/TelescopePrompt.lua
@@ -2,6 +2,9 @@
vim.opt_local.formatoptions:remove "t"
vim.opt_local.formatoptions:remove "c"
+-- Don't include `showbreak` when calculating strdisplaywidth
+vim.opt_local.wrap = false
+
-- There's also no reason to enable textwidth here anyway
vim.opt_local.textwidth = 0
vim.opt_local.scrollbind = false