will / spellsitter.nvim

Treesitter powered spellchecker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spellsitter.nvim

CI License: MIT

Enable Neovim's builtin spellchecker for buffers with tree-sitter highlighting.

Requirements

Neovim >= 0.5.0

Installation

packer.nvim:

use {
  -- Optional but recommended
  -- 'nvim-treesitter/nvim-treesitter',
  'lewis6991/spellsitter.nvim',
}

vim-plug:

" Optional but recommended
" Plug 'nvim-treesitter/nvim-treesitter'
Plug 'lewis6991/spellsitter.nvim'

Note: This plugin does not depend on nvim-treesitter however it is recommended in order to easily install tree-sitter parsers.

Usage

For basic setup with all batteries included:

require('spellsitter').setup()

If using packer.nvim spellsitter can be setup directly in the plugin spec:

use {
  'lewis6991/spellsitter.nvim',
  config = function()
    require('spellsitter').setup()
  end
}

Configuration can be passed to the setup function. Here is an example with all the default settings:

require('spellsitter').setup {
  -- Whether enabled, can be a list of filetypes, e.g. {'python', 'lua'}
  enable = true,
}

Non-Goals

  • Support external spellchecker backends.

About

Treesitter powered spellchecker

License:MIT License


Languages

Language:Lua 89.8%Language:Scheme 4.3%Language:C 2.4%Language:Makefile 1.9%Language:TeX 1.5%