typos-lsp

Source code spell checker for Visual Studio Code and LSP clients
typos is a low false-positive source code spell checker. This project exposes typos
via a Language Server Protocol (LSP) server and Visual Studio Code extension to provide a fast, low memory, in-editor spell checker.
Features
Install
Other clients
For homebrew users:
brew install typos-lsp
For cargo-binstall users:
cargo binstall --git https://github.com/tekumara/typos-lsp typos-lsp
For Linux users (via Cargo):
cargo install --git https://github.com/tekumara/typos-lsp typos-lsp
See typos-lsp versions on repology for other package managers. Or manually download typos-lsp
from the releases page.
Usage
Once installed typos
will automatically execute when you open or edit any file.
Configuration
For configuration see:
Config file support
Supports config fields in typos.toml
, _typos.toml
, or .typos.toml
, except:
files.ignore*
- have no effect.
default.check-filename
- file names are never spell checked.
default.check-file
- files are always checked.
*.binary
- binary files are always checked.
Config files will be read from the workspace folder or its parents. If there is no workspace folder, then no config file will be read and the typos defaults will be used.
Restart the server after changing the config file for the new changes to take affect.
Caveats
- Unlike
typos
file names are not spell checked.
- Doesn't spell check toggleterm.nvim terminals see toggleterm.nvim#653
Why aren't my misspellings being corrected?
To minimise false-positives typos
only suggests corrections for known misspellings, rather than unknown words like a traditional spell-checker. For more info see Why was ... not corrected?.
Contributing
See CONTRIBUTING.md to get started.