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
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
5 changed files with 28 additions and 1 deletions

View file

@ -1,5 +1,21 @@
{ {
"nodes": { "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": { "agenix": {
"inputs": { "inputs": {
"darwin": "darwin", "darwin": "darwin",
@ -840,6 +856,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"actions-preview-nvim": "actions-preview-nvim",
"agenix": "agenix", "agenix": "agenix",
"arkenfox-userjs": "arkenfox-userjs", "arkenfox-userjs": "arkenfox-userjs",
"asus-touchpad-numpad-driver": "asus-touchpad-numpad-driver", "asus-touchpad-numpad-driver": "asus-touchpad-numpad-driver",

View file

@ -47,6 +47,9 @@
hmts-nvim.flake = false; hmts-nvim.flake = false;
hmts-nvim.url = "github:calops/hmts.nvim"; hmts-nvim.url = "github:calops/hmts.nvim";
actions-preview-nvim.flake = false;
actions-preview-nvim.url = "github:aznhe21/actions-preview.nvim";
# Hyprland # Hyprland
hypr-contrib.url = "github:hyprwm/contrib"; hypr-contrib.url = "github:hyprwm/contrib";
hyprland.url = "github:hyprwm/Hyprland"; 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 = { l = {
name = "lsp", name = "lsp",
d = { vim.diagnostic.open_float, "Open diagnostic window" }, 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 = { r = {
function() function()
return ":IncRename " .. vim.fn.expand("<cword>") return ":IncRename " .. vim.fn.expand("<cword>")

View file

@ -27,5 +27,11 @@ with lib.my;
version = mkVersionInput inputs.hmts-nvim; version = mkVersionInput inputs.hmts-nvim;
src = 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;
};
}; };
} }