feat(nvim): add abbreviations for typos
parent
8364d22f92
commit
e468d26c51
|
@ -26,6 +26,17 @@ vim.opt.updatetime = 300
|
||||||
vim.opt_local.spell = true
|
vim.opt_local.spell = true
|
||||||
vim.opt_local.spelllang = { "en", "de_20" } -- all English regions and new German spelling
|
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
|
if vim.g.neovide then
|
||||||
vim.opt.guifont = "Fira Code Nerd Font:h10"
|
vim.opt.guifont = "Fira Code Nerd Font:h10"
|
||||||
vim.g.neovide_scale_factor = 0.7
|
vim.g.neovide_scale_factor = 0.7
|
||||||
|
|
Loading…
Reference in New Issue