actions preview

This commit is contained in:
Christian Nieves
2024-01-16 22:12:16 -06:00
parent a91b231e04
commit 92ea9df483
2 changed files with 18 additions and 1 deletions

View File

@ -67,6 +67,23 @@ end
return {
{
"aznhe21/actions-preview.nvim",
config = function()
require("actions-preview").setup({
telescope = {
sorting_strategy = "ascending",
layout_strategy = "vertical",
layout_config = {
width = 0.8,
height = 0.9,
prompt_position = "top",
preview_cutoff = 20,
preview_height = function(_, _, max_lines)
return max_lines - 15
end,
},
},
})
end,
keys = {
{ "?", "<cmd>lua require('actions-preview').code_actions()<cr>" },
},