feat(nvim): add actions-preview.nvim
This commit is contained in:
parent
97320fbec1
commit
736249a74d
5 changed files with 28 additions and 1 deletions
|
|
@ -148,6 +148,7 @@ with builtins;
|
|||
}
|
||||
];
|
||||
}
|
||||
{ plugin = actions-preview-nvim; }
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue