aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/php
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-11-18 09:07:46 +0100
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-11-18 09:07:58 +0100
commit877c889e43678110a0c5056f30587b60b3282eba (patch)
treefbfe080d5ba2adc3ec8e6857254b7879b8d010b7 /lua/alpha/php
parent522e50582299aa8e9194e6b9cd0749748c42b243 (diff)
downloadnvim-conf-877c889e43678110a0c5056f30587b60b3282eba.tar.gz
nvim-conf-877c889e43678110a0c5056f30587b60b3282eba.zip
small changes
Diffstat (limited to 'lua/alpha/php')
-rw-r--r--lua/alpha/php/gateway.lua2
-rw-r--r--lua/alpha/php/lsp.lua6
2 files changed, 4 insertions, 4 deletions
diff --git a/lua/alpha/php/gateway.lua b/lua/alpha/php/gateway.lua
index d196a85..9d78bf1 100644
--- a/lua/alpha/php/gateway.lua
+++ b/lua/alpha/php/gateway.lua
@@ -44,7 +44,7 @@ local open_resolver = function (resolver)
fqn = string.gsub(fqn, "\\\\", "\\")
-- P(fqn)
- R("alpha.php.lsp").find(fqn)
+ R("alpha.php.lsp").find(fqn, 'phpactor')
end
--- @param bufnr integer Buff id
diff --git a/lua/alpha/php/lsp.lua b/lua/alpha/php/lsp.lua
index 6845d1c..506ed40 100644
--- a/lua/alpha/php/lsp.lua
+++ b/lua/alpha/php/lsp.lua
@@ -20,9 +20,9 @@ lsp.get_lsp_buffer = function(server_name)
return buffers[1]
end
---- @param search string: fully name to search Class::method
-lsp.find = function(search, client)
- search = vim.split(search, "::")
+--- @param fqn string: fully name to search Class::method
+lsp.find = function(fqn, client)
+ local search = vim.split(fqn, "::")
local fqn_class = search[1]
local method = search[2]