sphinx.nvim
sphinx.nvim copied to clipboard
Disabling spellcheck for code block
Hi! Thanks for the plugin, it's working really well and pretty useful (haven't finished exploring all the features yet either).
I'm wondering if it's possible to somehow turn off spellcheck for code blocks. I do want spell check on my rst files, but it makes little sense for code blocks.
This is a limitation from nvim-treesitter https://github.com/nvim-treesitter/nvim-treesitter/issues/698, there is https://github.com/lewis6991/spellsitter.nvim (but haven't used it). From the readme, maybe this will work:
require('spellsitter').setup {
hl = 'SpellBad',
captures = {'comment', 'text'},
}