Skip to content

Commit

Permalink
feat(actions-preview.nvim): switched from archived project to new one
Browse files Browse the repository at this point in the history
  • Loading branch information
daUnknownCoder committed Feb 6, 2024
1 parent d95f784 commit b85df2e
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions lua/NeutronVim/plugins/LSP/codeaction.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
return {
{
"weilbith/nvim-code-action-menu",
cmd = "CodeActionMenu",
"aznhe21/actions-preview.nvim",
keys = {
{ "\\a", "<cmd>CodeActionMenu<CR>", desc = "CodeActionMenu" },
{ "\\a", "<cmd>lua require('actions-preview').code_actions()<CR>", desc = "CodeActionMenu" },
},
lazy = true,
config = function()
vim.cmd([[let g:code_action_menu_window_border = 'rounded']])
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,
},
}

0 comments on commit b85df2e

Please sign in to comment.