From 80060efd784954b56dcb67a6c181db84de3bbd2a Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Fri, 8 Apr 2022 08:17:05 +0200 Subject: update namespace(still need work). add keybindings --- lua/alpha/snips/ft/php.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/alpha/snips/ft/php.lua') 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)) -- cgit v1.2.3