feat(nvim): add abbreviations for typos
This commit is contained in:
parent
8364d22f92
commit
e468d26c51
1 changed files with 11 additions and 0 deletions
|
@ -26,6 +26,17 @@ vim.opt.updatetime = 300
|
|||
vim.opt_local.spell = true
|
||||
vim.opt_local.spelllang = { "en", "de_20" } -- all English regions and new German spelling
|
||||
|
||||
-- Abbreviations for common typos
|
||||
vim.cmd("cnoreabbrev W! w!")
|
||||
vim.cmd("cnoreabbrev Q! q!")
|
||||
vim.cmd("cnoreabbrev Qall! qall!")
|
||||
vim.cmd("cnoreabbrev Wq wq")
|
||||
vim.cmd("cnoreabbrev Wa wa")
|
||||
vim.cmd("cnoreabbrev wQ wq")
|
||||
vim.cmd("cnoreabbrev WQ wq")
|
||||
vim.cmd("cnoreabbrev W w")
|
||||
vim.cmd("cnoreabbrev Q q")
|
||||
|
||||
if vim.g.neovide then
|
||||
vim.opt.guifont = "Fira Code Nerd Font:h10"
|
||||
vim.g.neovide_scale_factor = 0.7
|
||||
|
|
Loading…
Reference in a new issue