2023-10-19 20:11:55 -06:00
2023-10-19 17:20:30 -06:00
2023-10-19 20:11:55 -06:00

thethethe.nvim

This is a Neovim plugin to autocorrect common misspellings and typos. If you type teh, neovim will automatically correct it to the.

It's based on vim-autocorrect, but designed for Neovim and written in pure Lua. It also loads the dictionary in the background, so it doesn't delay startup time.

Installing

{
  "https://git.sr.ht/~swaits/thethethe.nvim",
  opts = { },
}

packer

{
  "https://git.sr.ht/~swaits/thethethe.nvim",
  config = function()
    require("thethethe").setup()
  end
}

vim-plug

Plug 'https://git.sr.ht/~swaits/thethethe.nvim'
lua require("thethethe").setup()

Configuring

The default configuration options are listed below:

opts = {
  -- Time (milliseconds) to wait before loading abbreviations
  delay_ms = 2000
}

Future Directions

  • Allow specifying custom dictionary files
  • List custom dictionary entries directly in opts {}
  • Split current (large!) dictionary into something like small, medium, large
  • Recategorize current dictionary "English" and add options to include non-English dictionaries
S
Description
"A neovim plugin to automatically correct common misspellings and typos like ""teh"" for ""the""."
Readme MIT
103 KiB
0 Stars 1 Watchers 0 Forks
Languages
Lua 100%