summaryrefslogtreecommitdiff
path: root/ftplugin/TelescopePrompt.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-08-26 06:15:48 -0700
committerGitHub <noreply@github.com>2021-08-26 06:15:48 -0700
commit369691c6d9e1d662274654bdce9d4c0c9e6c5d05 (patch)
treea760abb410d126ec21ff5db1a249fbc0473f92f3 /ftplugin/TelescopePrompt.lua
parent861a0f968016ea942ac0e3fb61bbabda2c2d0840 (diff)
fix: Override textwidth and formatoptions to attempt to prevent linebreaks (#1153)
Diffstat (limited to 'ftplugin/TelescopePrompt.lua')
-rw-r--r--ftplugin/TelescopePrompt.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/ftplugin/TelescopePrompt.lua b/ftplugin/TelescopePrompt.lua
new file mode 100644
index 0000000..c2bc66e
--- /dev/null
+++ b/ftplugin/TelescopePrompt.lua
@@ -0,0 +1,6 @@
+-- Don't wrap textwidth things
+vim.opt_local.formatoptions:remove "t"
+vim.opt_local.formatoptions:remove "c"
+
+-- There's also no reason to enable textwidth here anyway
+vim.opt_local.textwidth = 0