From 877c889e43678110a0c5056f30587b60b3282eba Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 18 Nov 2022 09:07:46 +0100 Subject: small changes --- lua/alpha/php/gateway.lua | 2 +- lua/alpha/php/lsp.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lua/alpha/php') 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] -- cgit v1.2.3