diff --git a/init.lua b/init.lua index c42caa1..b7f0bbd 100644 --- a/init.lua +++ b/init.lua @@ -109,6 +109,15 @@ vim.opt.number = true -- Disable mouse mode. vim.opt.mouse = '' +-- Enable spelling. +-- It's better to stick to default spelling shortcuts IMO. +-- `]s` go to next misspelled word. +-- `[s` go to previous misspelled word. +-- `z=` show suggestions list. +-- `zg` mark word as spelled correctly. +vim.opt.spelllang = 'en_us' +vim.opt.spell = true + -- Don't show the mode, since it's already in the status line vim.opt.showmode = false