siko1056 / language-sphinx

A Sphinx syntax package for Atom
GNU General Public License v3.0
4 stars 3 forks source link

Conflicts with spell-check #7

Open elmar-hinz opened 5 years ago

elmar-hinz commented 5 years ago

As soon as I enable language-sphinx the red underlines of misspelled words vanish.

For authoring I need both tools. Sure I can run them one after the other.

siko1056 commented 5 years ago

Sorry for the late answer. I think you need to tell the spell-check plugin to perform its checks, if the language-sphinx package and its grammar is loaded. See https://github.com/atom/spell-check/blob/master/README.md

By default spell check is enabled for the following files:

  • Plain Text
  • GitHub Markdown
  • Git Commit Message
  • AsciiDoc
  • reStructuredText

You can override this from the Spell Check settings in the Settings View (cmd-,). The Grammars config option is a list of scopes for which the package will check for spelling errors.

Especially this one might help:

To enable Spell Check for your current file type: put your cursor in the file, open the Command Palette (cmd-shift-p), and run the Editor: Log Cursor Scope command. This will trigger a notification which will contain a list of scopes. The first scope that's listed is the one you should add to the list of scopes in the settings for the Spell Check package. Here are some examples: source.coffee, text.plain, text.html.basic.

Does this work for you?