From aa666a2391504313ba042c1fc143c8fc9ae47a0d Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.dev>
Date: Fri, 3 Jan 2025 18:00:00 +0000
Subject: [PATCH] Re-add Phpactor

---
 nix/modules/home-manager/features/cli/neovim.nix | 1 +
 nvim/plugin/phpactor.lua                         | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 nvim/plugin/phpactor.lua

diff --git a/nix/modules/home-manager/features/cli/neovim.nix b/nix/modules/home-manager/features/cli/neovim.nix
index bf0cccf1..125617aa 100644
--- a/nix/modules/home-manager/features/cli/neovim.nix
+++ b/nix/modules/home-manager/features/cli/neovim.nix
@@ -24,6 +24,7 @@ with lib;
         mini-nvim
         nvim-web-devicons
         oil-nvim
+        phpactor
         refactoring-nvim
         standard-vim
         undotree
diff --git a/nvim/plugin/phpactor.lua b/nvim/plugin/phpactor.lua
new file mode 100644
index 00000000..873d853c
--- /dev/null
+++ b/nvim/plugin/phpactor.lua
@@ -0,0 +1,2 @@
+vim.keymap.set("n", "<leader>pm", "<cmd>PhpactorContextMenu<CR>")
+vim.keymap.set("n", "<leader>pn", "<cmd>PhpactorClassNew<CR>")