Skip to content

richardhapb/neospeller.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Neospeller.nvim

About the project

Neospeller is a Neovim plugin that provides spell checking functionality using an external spell checker tool called neospeller. It allows users to check the spelling of the text in the current buffer or a selected range within the buffer.

Getting Started

These instructions will help you set up and use Neospeller in your Neovim environment.

Prerequisites

  • Neovim 0.5.0 or later
  • neospeller installed on your system

Installation

  1. Install the neospeller executable. You can download the latest release from the neospeller GitHub repository

  2. Install the Neospeller plugin using your preferred plugin manager:

    LazyVim:

    {
     dir = "~/plugins/neospeller.nvim",
     lazy = false,
     opts = {},
     cmd = "CheckSpell",
     keys = {
       { "<leader>S", ":CheckSpell<CR>", mode = { "x", "n" },  desc = "Check spelling" },
       { "<leader>D", ":CheckSpellText<CR>", mode = { "x", "n" },  desc = "Check spelling" }
     }
    }

    Packer:

    use {
      "richardhapb/neospeller.nvim",
      opt = true,
      config = function() require('neospeller').setup() end,
      cmd = "CheckSpell",
      keys = {
        { "<leader>S", ":CheckSpell<CR>", mode = { "x", "n" },  desc = "Check spelling" },
        { "<leader>D", ":CheckSpellText<CR>", mode = { "x", "n" },  desc = "Check spelling" }
      }
    }

    Plug:

    Plug 'richardhapb/neospeller.nvim', {'on': ['CheckSpell', 'CheckSpellText']}
    " Use with keymaps:
    " nnoremap <leader>S :CheckSpell<CR>
    " vnoremap <leader>S :CheckSpell<CR>
    " nnoremap <leader>D :CheckSpellText<CR>
    " vnoremap <leader>D :CheckSpellText<CR>

Usage

  1. Load the Neospeller plugin in your Neovim configuration if you haven't already done so. For example:

    require('neospeller').setup()
  2. Use the :CheckSpell command to check the spelling of the text in the current buffer or a selected range. For example:

    • To check the entire buffer:

      :CheckSpell
    • To check a specific range, visually select the text and then run:

      :'<,'>CheckSpell
    • To check plain text (not considering the language)

      :'<,'>CheckSpellText

Neospeller will rewrite the buffer with the corrected text in the comments.

Available languages:

  • Rust
  • Python
  • JavaScript
  • CSS
  • Lua
  • C
  • Bash
  • Plain text

About

Neovim plugin for checking spelling in code comments using AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages