aboutsummaryrefslogtreecommitdiffstats
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
parent522e50582299aa8e9194e6b9cd0749748c42b243 (diff)
downloadnvim-conf-877c889e43678110a0c5056f30587b60b3282eba.tar.gz
nvim-conf-877c889e43678110a0c5056f30587b60b3282eba.zip
small changes
-rw-r--r--init-old.vim27
-rw-r--r--lua/alpha/php/gateway.lua2
-rw-r--r--lua/alpha/php/lsp.lua6
3 files changed, 4 insertions, 31 deletions
diff --git a/init-old.vim b/init-old.vim
deleted file mode 100644
index 841a685..0000000
--- a/init-old.vim
+++ /dev/null
@@ -1,27 +0,0 @@
-" Allows to have a .nvimrc per project folder
-set exrc
-
-syntax enable
-
-let mapleader = ' '
-
-inoremap <C-c> <esc>
-
-nnoremap <Leader><CR> :so ~/.config/nvim/init.vim<CR>
-
-" forward and backward search of current word
-
-" format json files
-" autocmd BufWritePre *stubs/**/*.json :%!jq
-
-autocmd BufWritePost */alpha/**.lua lua require('plenary.reload').reload_module('alpha')
-
-" quick duplication of files
-
-let g:laravel_artisan = 'sail artisan'
-let test#php#pest#executable = 'sail debug test'
-
-let $NO_TTY = 1
-
-" Has to be the last line for the .nvimrc per project
-set secure
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]