Feature Description
Thanks to all who've worked on this project, it's a big part of making it practical to work on LaTeX or Typst documents in Zed!
The ability to have multiple dictionaries active at the same time is very useful, but there's no way to add words to the dictionary only for a specific language – it would be great to have this.
Currently, the words list unfortunately ends up being a mixture of different languages:
dictionaries = ["en_gb", "de"]
words = ["redox", "upstreamed", "quelloffen"]
Unless I'm mistaken this means that "quelloffen" becomes an acceptable (and presumably also suggested) word when writing in English, even if there's a project configuration file that sets the dictionary for the project to be exclusively English, or even if an LSP overrides the dictionary setting based on a markup tag in the file.
Use Case
I feel that for people who regularly work in more than one language this is fairly essential, to avoid false negatives and incorrect suggestions.
Proposed Solution
words could, rather than being a list, simply be a table with the applicable language tag as keys, and the correct one is selected based on the active language:
dictionaries = ["en_gb", "de"]
words.global = ["redox"]
words.en_gb = ["upstreamed"]
words.de = ["quelloffen"]
Alternative Solutions
You could just rely on per-project configuration, but that loses the convenience of the global configuration.
Examples
No response
Additional Context
No response
Feature Description
Thanks to all who've worked on this project, it's a big part of making it practical to work on LaTeX or Typst documents in Zed!
The ability to have multiple dictionaries active at the same time is very useful, but there's no way to add words to the dictionary only for a specific language – it would be great to have this.
Currently, the
wordslist unfortunately ends up being a mixture of different languages:Unless I'm mistaken this means that "quelloffen" becomes an acceptable (and presumably also suggested) word when writing in English, even if there's a project configuration file that sets the dictionary for the project to be exclusively English, or even if an LSP overrides the dictionary setting based on a markup tag in the file.
Use Case
I feel that for people who regularly work in more than one language this is fairly essential, to avoid false negatives and incorrect suggestions.
Proposed Solution
wordscould, rather than being a list, simply be a table with the applicable language tag as keys, and the correct one is selected based on the active language:Alternative Solutions
You could just rely on per-project configuration, but that loses the convenience of the global configuration.
Examples
No response
Additional Context
No response