Enable Neovim's builtin spellchecker for buffers with tree-sitter highlighting.
Neovim >= 0.5.0
use {
-- Optional but recommended
-- 'nvim-treesitter/nvim-treesitter',
'lewis6991/spellsitter.nvim',
}
" 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.
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,
}
- Support external spellchecker backends.