diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-11-26 21:43:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 22:43:51 +0100 |
| commit | b415e862bf248d66c40e242de4a0c76c68e278f1 (patch) | |
| tree | 0c4a5b6331a7057807cb60d25eb9a162a6f77b6c /ftplugin/TelescopePrompt.lua | |
| parent | a8e9aa58a4943557cc5711aa6f36d1940e5cde5e (diff) | |
fix: set `nowrap` in prompt buffer (#1499)
- fixes `strdisplaywidth` calculations for `dynamic_preview_title`
Diffstat (limited to 'ftplugin/TelescopePrompt.lua')
| -rw-r--r-- | ftplugin/TelescopePrompt.lua | 3 |
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 |
