From 7701e1e3ebf73c58d2636a0707c08dca459a15ff Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 20 Sep 2022 17:45:11 +0200 Subject: disable hydra since was not working for the window as I was expecting --- lua/alpha/snips/ft/php.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/alpha/snips') 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 -- cgit v1.2.3