diff options
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 daf1e77..2d69abc 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -32,7 +32,7 @@ local visibility = function(position, default) end local namespace = function() - local dir = vim.fn.getcwd() + local dir = vim.fn.expand("%:h") local autoloads = vim.call("composer#query", "autoload.psr-4") if autoloads == nil then return (dir:gsub("^%l", string.upper)) |