sphinx.nvim icon indicating copy to clipboard operation
sphinx.nvim copied to clipboard

Disabling spellcheck for code block

Open WhyNotHugo opened this issue 4 years ago • 1 comments

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.

WhyNotHugo avatar Aug 08 '21 08:08 WhyNotHugo

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

stsewd avatar Aug 08 '21 16:08 stsewd