feat(nvim): add actions-preview.nvim

This commit is contained in:
Moritz Böhme 2023-09-06 08:43:03 +02:00
parent 97320fbec1
commit 736249a74d
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 28 additions and 1 deletions

View file

@ -148,6 +148,7 @@ with builtins;
}
];
}
{ plugin = actions-preview-nvim; }
];
}
{

View file

@ -34,7 +34,7 @@ local on_attach_def = function(client, bufnr)
l = {
name = "lsp",
d = { vim.diagnostic.open_float, "Open diagnostic window" },
c = { vim.lsp.buf.code_action, "Code action" },
c = { require("actions-preview").code_actions, "Code action", mode = { "v", "n" } },
r = {
function()
return ":IncRename " .. vim.fn.expand("<cword>")