aboutsummaryrefslogtreecommitdiffstats
path: root/lua/plugins/phpactor.lua
diff options
context:
space:
mode:
authorElvis Claros Castro <elvis@claros.ar>2024-09-20 23:08:00 -0300
committerElvis Claros Castro <elvis@claros.ar>2024-09-20 23:08:00 -0300
commitfa3e94e60b9edc7c3620f43e207b915eae84bab0 (patch)
tree10617c9508c797ffb9bcf3bdb09c60ae69371662 /lua/plugins/phpactor.lua
parent6364400a98c93cdf6f2209670be1d2b6e31ee6ab (diff)
downloadnvim-conf-fa3e94e60b9edc7c3620f43e207b915eae84bab0.tar.gz
nvim-conf-fa3e94e60b9edc7c3620f43e207b915eae84bab0.zip
feat: solo dejo phpactor
Diffstat (limited to 'lua/plugins/phpactor.lua')
-rw-r--r--lua/plugins/phpactor.lua61
1 files changed, 0 insertions, 61 deletions
diff --git a/lua/plugins/phpactor.lua b/lua/plugins/phpactor.lua
deleted file mode 100644
index 1988c92..0000000
--- a/lua/plugins/phpactor.lua
+++ /dev/null
@@ -1,61 +0,0 @@
-local phpactor = function ()
- vim.ui.select({
- "class_inflect",
- "context_menu",
- "expand_class",
- "generate_accessor",
- "change_visibility",
- "copy_class",
- "import_class",
- "import_missing_classes",
- "move_class",
- "navigate",
- "new_class",
- "transform",
- "update",
- "config",
- "status",
- "cache_clear",
- }, {
- prompt = "Phpactor Action",
- }, function(choice)
- if choice == nil or choice == "" then
- return
- end
-
- -- TODO: add option for new class in same directory
- if choice == "new_class" then
- return vim.ui.input({
- prompt = "New Class",
- }, function(value)
- if value == nil then
- return
- end
- -- TODO: check filename generation to validate the path
- require("phpactor").rpc("new_class", { text_value = vim.fn.getcwd() .. '/' .. value .. ".php" })
- end)
- end
-
- require("phpactor").rpc(choice, {})
- end)
-end
-
-return {
- "adalessa/phpactor.nvim",
- cmd = { "PhpActor" },
- keys = {
- { "<leader>pa", phpactor, desc = "PhpActor options" },
- { "<leader>pc", ":PhpActor context_menu<cr>", desc = "PhpActor context menu" },
- },
- dependencies = {
- "nvim-lua/plenary.nvim",
- },
- opts = {
- install = {
- bin = 'phpactor'
- },
- lspconfig = {
- enabled = false,
- },
- },
-}