-- {{{ LAYA local aug = vim.api.nvim_create_augroup('laya', {}) vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { group = aug, pattern = '~/jopixel/**/*.php', callback = function() vim.cmd.iabbrev({ args = { '', 'TR', '$this->obtainer()->translator()->t();' } }) vim.cmd.iabbrev({ args = { '', 'TI', '$this->obtainer()->translator()->t()' } }) vim.cmd.iabbrev({ args = { '', 'LOG', '$this->obtainer()->logger()->log();' } }) vim.cmd.iabbrev({ args = { '', 'DBG', "$this->obtainer()->logger()->log('debug', 'debug',);" } }) vim.cmd.iabbrev({ args = { '', 'PROD', '$this->producer()' } }) vim.cmd.iabbrev({ args = { '', 'FILE', '$this->producer()->file()' } }) vim.cmd.iabbrev({ args = { '', 'LINK', "$this->producer()->link($this, '')" } }) vim.cmd.iabbrev({ args = { '', 'NW', '$this->obtainer()->notifications()->warning();' } }) vim.cmd.iabbrev({ args = { '', 'NS', '$this->obtainer()->notifications()->success();' } }) end }) -- }}} LAYA