diff options
Diffstat (limited to 'lua/alpha')
| -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)) |