feat(nvim): add preview for code actions

This commit is contained in:
Price Hiller 2024-02-02 21:53:34 -06:00
parent bfae2cb59f
commit 3d7ae67a45
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -91,6 +91,29 @@ return {
}
end,
},
{
"aznhe21/actions-preview.nvim",
opts = {
telescope = {
border = {},
layout_strategy = "vertical",
layout_config = {
width = 0.8,
height = 0.7
}
},
},
keys = {
{
"<leader>lc",
function()
require("actions-preview").code_actions()
end,
desc = "LSP: Code Action",
mode = { "n", "v" },
},
},
},
{
"mrcjkb/rustaceanvim",
ft = { "rust" },
@ -168,7 +191,6 @@ return {
{ "<leader>lD", vim.lsp.buf.declaration, desc = "LSP: Declaration" },
{ "<leader>k", vim.lsp.buf.hover, desc = "LSP: Hover" },
{ "<leader>K", vim.lsp.buf.signature_help, desc = "LSP: Sig Help" },
{ "<leader>lc", vim.lsp.buf.code_action, desc = "LSP: Code Action" },
{ "<leader>lR", ":LspRestart<CR>", desc = "LSP: Restart" },
{
"<leader>ls",