Skip to content

Commit

Permalink
fix: disable signcolumn in telescope windows (nvim-telescope#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 authored Mar 11, 2022
1 parent ddb9e56 commit 2d0b4a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ftplugin/TelescopePrompt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ 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

vim.opt_local.signcolumn = "no"
2 changes: 2 additions & 0 deletions ftplugin/TelescopeResults.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-- Don't have scrolloff, it makes things weird.
vim.opt_local.scrolloff = 0
vim.opt_local.scrollbind = false

vim.opt_local.signcolumn = "no"
1 change: 0 additions & 1 deletion lua/telescope/previewers/buffer_previewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ previewers.new_buffer_previewer = function(opts)
end
end)

-- TODO(conni2461): We only have to set options once. Right?
vim.api.nvim_win_set_option(status.preview_win, "winhl", "Normal:TelescopePreviewNormal")
vim.api.nvim_win_set_option(status.preview_win, "signcolumn", "no")
vim.api.nvim_win_set_option(status.preview_win, "foldlevel", 100)
Expand Down

0 comments on commit 2d0b4a3

Please sign in to comment.