summaryrefslogtreecommitdiff
path: root/ftplugin
diff options
context:
space:
mode:
authorSimon Hauser <simon.hauser@helsinki-systems.de>2021-11-26 22:42:54 +0100
committerGitHub <noreply@github.com>2021-11-26 22:42:54 +0100
commita8e9aa58a4943557cc5711aa6f36d1940e5cde5e (patch)
tree3975d71c08b58df9e63c2ef058e825a7b7142ac9 /ftplugin
parent1c57cc6140644695f0d9bd71b63de45feeca6ae7 (diff)
fix: issue when scrollbind is set (#1496)
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/TelescopePrompt.lua1
-rw-r--r--ftplugin/TelescopeResults.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/ftplugin/TelescopePrompt.lua b/ftplugin/TelescopePrompt.lua
index c2bc66e..ed99898 100644
--- a/ftplugin/TelescopePrompt.lua
+++ b/ftplugin/TelescopePrompt.lua
@@ -4,3 +4,4 @@ vim.opt_local.formatoptions:remove "c"
-- There's also no reason to enable textwidth here anyway
vim.opt_local.textwidth = 0
+vim.opt_local.scrollbind = false
diff --git a/ftplugin/TelescopeResults.lua b/ftplugin/TelescopeResults.lua
index fd6fc0d..13c20e4 100644
--- a/ftplugin/TelescopeResults.lua
+++ b/ftplugin/TelescopeResults.lua
@@ -1,2 +1,3 @@
-- Don't have scrolloff, it makes things weird.
vim.opt_local.scrolloff = 0
+vim.opt_local.scrollbind = false