aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/snips/ft
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-09-20 17:45:11 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-09-20 17:45:44 +0200
commit7701e1e3ebf73c58d2636a0707c08dca459a15ff (patch)
treee2972ebb504088f4cc65cbbae699775c3f75c070 /lua/alpha/snips/ft
parent0dbf8150681d38907a29a4aa1893faa3bda4b9c6 (diff)
downloadnvim-conf-7701e1e3ebf73c58d2636a0707c08dca459a15ff.tar.gz
nvim-conf-7701e1e3ebf73c58d2636a0707c08dca459a15ff.zip
disable hydra since was not working for the window as I was expecting
Diffstat (limited to 'lua/alpha/snips/ft')
-rw-r--r--lua/alpha/snips/ft/php.lua3
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