mistake.nvim is a spelling autocorrect plugin for Neovim, based on GitHub's "Fixed typo" commits and common misspellings from Wikipedia.
- Includes over 23k entries for correction
- Lazy loads the correction dictionary in chunks with dynamic timing to reduce startup performance impact
- Includes user command for adding personal corrections
- Includes UI for editing personal corrections
{
"https://github.com/ck-zhang/mistake.nvim",
}
If keymaps are wanted for personal corrections, the following configuration snippet can be applied:
{
'ck-zhang/mistake.nvim',
config = function()
local plugin = require 'mistake'
vim.defer_fn(function()
plugin.setup()
end, 500)
vim.keymap.set('n', '<leader>ma', plugin.add_entry, { desc = '[M]istake [A]dd entry' })
vim.keymap.set('n', '<leader>me', plugin.edit_entries, { desc = '[M]istake [E]dit entries' })
vim.keymap.set('n', '<leader>mc', plugin.add_entry_under_cursor, { desc = '[M]istake add [C]urrent word' })
end,
}
To add your own corrections, use :MistakeAdd
;
to edit your personal dictionary, use :MistakeEdit
.
These updates will take effect immediately, no restart required.
Please create a PR for any faulty corrections you encounter, the entries are processed with NLTK to minimize faulty corrections, but quality isn't guaranteed.