typos.nvim is a Neovim plugin that uses the typos-cli tool as a diagnostics source. It provides diagnostic warnings for typos in your codebase with a low false positive rate.
neovim 0.7
null-ls
(optional, for code actions)
using packer.nvim
:
use 'poljar/typos.nvim'
typos.nvim can be set up without additional requirements to act as a diagnostics source:
require('typos').setup()
typos.nvim can also be configured to act as a diagnostics and code actions source for null-ls.
To activate the code actions, just add our actions source to the list of active sources in your null-ls setup function:
require('null-ls').setup({
sources = {
require('typos').actions,
},
})
The same can be done for the diagnostic source:
require('null-ls').setup({
sources = {
require('typos').actions,
require('typos').diagnostics,
},
})