feat(nvim): add actions-preview.nvim

nixos
Moritz Böhme 2023-09-06 08:43:03 +02:00
parent 97320fbec1
commit 736249a74d
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
5 changed files with 28 additions and 1 deletions

View File

@ -1,5 +1,21 @@
{
"nodes": {
"actions-preview-nvim": {
"flake": false,
"locked": {
"lastModified": 1692778077,
"narHash": "sha256-5HzyrYWGTdorG4JXMv0iQNj9EM702+8g7E18Oct1JiY=",
"owner": "aznhe21",
"repo": "actions-preview.nvim",
"rev": "5650c76abfb84d6498330dd045657ba630ecdbba",
"type": "github"
},
"original": {
"owner": "aznhe21",
"repo": "actions-preview.nvim",
"type": "github"
}
},
"agenix": {
"inputs": {
"darwin": "darwin",
@ -840,6 +856,7 @@
},
"root": {
"inputs": {
"actions-preview-nvim": "actions-preview-nvim",
"agenix": "agenix",
"arkenfox-userjs": "arkenfox-userjs",
"asus-touchpad-numpad-driver": "asus-touchpad-numpad-driver",

View File

@ -47,6 +47,9 @@
hmts-nvim.flake = false;
hmts-nvim.url = "github:calops/hmts.nvim";
actions-preview-nvim.flake = false;
actions-preview-nvim.url = "github:aznhe21/actions-preview.nvim";
# Hyprland
hypr-contrib.url = "github:hyprwm/contrib";
hyprland.url = "github:hyprwm/Hyprland";

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>")

View File

@ -27,5 +27,11 @@ with lib.my;
version = mkVersionInput inputs.hmts-nvim;
src = inputs.hmts-nvim;
};
actions-preview-nvim = prev.vimUtils.buildVimPluginFrom2Nix {
pname = "actions-preview-nvim";
version = mkVersionInput inputs.actions-preview-nvim;
src = inputs.actions-preview-nvim;
};
};
}