diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-04-08 08:17:05 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-04-08 08:17:05 +0200 |
| commit | 80060efd784954b56dcb67a6c181db84de3bbd2a (patch) | |
| tree | ebd2e80dfe3e9cd731ebf800100dd03ad75feec0 /lua/alpha/snips/ft/php.lua | |
| parent | 527927ba99f85744992da81f27bafaac0d35bbb9 (diff) | |
| download | nvim-conf-80060efd784954b56dcb67a6c181db84de3bbd2a.tar.gz nvim-conf-80060efd784954b56dcb67a6c181db84de3bbd2a.zip | |
update namespace(still need work). add keybindings
Diffstat (limited to 'lua/alpha/snips/ft/php.lua')
| -rw-r--r-- | lua/alpha/snips/ft/php.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/alpha/snips/ft/php.lua b/lua/alpha/snips/ft/php.lua index 2916953..40560b8 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -33,7 +33,7 @@ local visibility = function (position, default) end local namespace = function () - local dir = vim.fn.expand('%:h') + local dir = vim.fn.getcwd() local autoloads = vim.call('composer#query', 'autoload.psr-4') if autoloads == nil then return (dir:gsub("^%l", string.upper)) |