From 369691c6d9e1d662274654bdce9d4c0c9e6c5d05 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 26 Aug 2021 06:15:48 -0700 Subject: [PATCH] fix: Override textwidth and formatoptions to attempt to prevent linebreaks (#1153) --- ftplugin/TelescopePrompt.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ftplugin/TelescopePrompt.lua 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