diff options
Diffstat (limited to 'lua/alpha/snips/ft/php.lua')
| -rw-r--r-- | lua/alpha/snips/ft/php.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/alpha/snips/ft/php.lua b/lua/alpha/snips/ft/php.lua index 70cf49b..a9bbe37 100644 --- a/lua/alpha/snips/ft/php.lua +++ b/lua/alpha/snips/ft/php.lua @@ -48,6 +48,9 @@ local namespace = function() end end dir = dir:gsub("/", "\\") + if dir == "" then + return globalNamespace + end return string.format("%s\\%s", globalNamespace, dir) end |