add abbreviations
This commit is contained in:
parent
a57f72f7c7
commit
fc250c0be2
7 changed files with 47 additions and 7 deletions
10
lua/abbreviations.lua
Normal file
10
lua/abbreviations.lua
Normal 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 {}
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue