Home

Awesome

typos.nvim

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.

<!-- panvimdoc-ignore-start -->

Screenshot

Showcase

<!-- panvimdoc-ignore-end -->

Prerequisites

Installation

using packer.nvim:

use 'poljar/typos.nvim'

Stand-alone setup

typos.nvim can be set up without additional requirements to act as a diagnostics source:

require('typos').setup()

null-ls 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,
    },
})