Add line wrapping to snacks picker preview for noficiations and

diagnostics
This commit is contained in:
Martin Larsson 2025-07-06 00:23:11 +02:00
parent 8393a93e8b
commit 72891e5ac7

View file

@ -128,8 +128,8 @@ return {
{ "<leader>l", function() Snacks.picker.git_log_file() end, }, { "<leader>l", function() Snacks.picker.git_log_file() end, },
{ "<leader>o", function() Snacks.picker.lsp_workspace_symbols() end, }, { "<leader>o", function() Snacks.picker.lsp_workspace_symbols() end, },
{ "<leader>s", function() Snacks.picker.lsp_symbols() end, }, { "<leader>s", function() Snacks.picker.lsp_symbols() end, },
{ "<leader>n", function() Snacks.picker.notifications() end }, { "<leader>n", function() Snacks.picker.notifications({ win = { preview = { wo = { wrap = true } } } }) end },
{ "<leader>d", function() Snacks.picker.diagnostics() end }, { "<leader>d", function() Snacks.picker.diagnostics({ win = { preview = { wo = { wrap = true } } } }) end },
{ "<leader>e", function() Snacks.rename.rename_file({}) end }, { "<leader>e", function() Snacks.rename.rename_file({}) end },