-- {{{ 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 --- terminal {{{ local termgroup = vim.api.nvim_create_augroup('terminal', { clear = true }) vim.api.nvim_create_autocmd('TermOpen', { group = termgroup, callback = function() -- local buf = args.buf vim.api.nvim_win_set_option(0, 'number', false) vim.api.nvim_win_set_option(0, 'signcolumn', 'no') vim.schedule(vim.cmd.startinsert) -- without schedule it lock screen refresh end }) --}}} -- Buffer {{{ vim.cmd([[ augroup forceRecheck au FocusGained,BufEnter * :silent! ! augroup END ]]) -- }}} --- Keys {{{ -- scroll up and down with shift+arrow vim.keymap.set('n', '', '') vim.keymap.set('n', '', '') --}}}