add abbreviations

This commit is contained in:
Ray Elliott 2025-12-08 00:06:52 +00:00
commit fc250c0be2
7 changed files with 47 additions and 7 deletions

10
lua/abbreviations.lua Normal file
View file

@ -0,0 +1,10 @@
-- Abbreviations (common typo corrections)
-- Phase 10.2: Insert-mode abbreviations for frequent typos
vim.cmd.iabbrev('adn', 'and')
vim.cmd.iabbrev('waht', 'what')
vim.cmd.iabbrev('tehn', 'then')
vim.cmd.iabbrev('functin', 'function')
vim.cmd.iabbrev('positin', 'position')
return {}

View file

@ -1,6 +1,19 @@
-- Non-plugin autocommands (minimal placeholder for bootstrap)
local aug = vim.api.nvim_create_augroup('UserDefaults', { clear = true })
-- Phase 10.3: Templates (auto-populate new files from templates)
local template_aug = vim.api.nvim_create_augroup('Templates', { clear = true })
vim.api.nvim_create_autocmd("BufNewFile", {
group = template_aug,
pattern = "*.sh",
callback = function()
-- Read template at top of file, then move to end
vim.cmd('0read ~/.config/nvim/templates/template.sh')
vim.cmd('normal! G')
end,
})
-- Phase 9.4: Per-filetype indentation settings to match formatters
-- PHP: WordPress coding standards (tabs, displayed as 2 spaces)