Skip to content

Commit

Permalink
telescope: set wrap on previewer to enable todo with tag search workflow
Browse files Browse the repository at this point in the history
Signed-off-by: aserowy <serowy@hotmail.com>
  • Loading branch information
aserowy committed Nov 20, 2024
1 parent 7ae70a4 commit 6014dbd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lua/plugins/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ local function setup_telescope()
require("telescope").load_extension("dap")
require("telescope").load_extension("ui-select")
require("telescope").load_extension("undo")

vim.api.nvim_create_autocmd("User", {
pattern = "TelescopePreviewerLoaded",
callback = function(args)
vim.wo.wrap = true
vim.wo.number = false

if args.data.bufname:match("*.csv") then
vim.wo.wrap = false
end
end,
})
end

return {
Expand Down

0 comments on commit 6014dbd

Please # to comment.