Skip to content

Using typos-cli to show diagnostics warnings in nvim

License

Notifications You must be signed in to change notification settings

poljar/typos.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Screenshot

Showcase

Prerequisites

  • neovim 0.7
  • null-ls (optional, for code actions)

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

About

Using typos-cli to show diagnostics warnings in nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages