mason-org / mason-org/mason.nvim
Adding cspell dictionaries
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 10.5k
- Forks
- 338
- PR merge metrics
- No merged PRs in 30d
Description
I've searched open issues for similar requests
- Yes
Is your feature request related to a problem? Please describe.
As a developer working on localized applications, I would like to be able to add language dictionaries to the instance of cspell installed by mason. As it is now, I would need to rewrite the entire app to use a localization framework just so I can extract the localized strings from the codebase in order to escape the huge amount of warnings cspell generates.
Cspell has a built in mechanism for adding language dictionaries, see @cspell/dict-nb-no
Describe the solution you'd like
I'd like to be able to customize the languages added and linked with npm when adding cspell with Mason. Ideally I'd like to pass a list of languages to mason setup, so that when it installs cspell with npm it would also add those languages it knows about and link them appropriately. It could look like this:
require'mason'.setup({
cspell = {
additional_dicts = {
'@cspell/dict-nb-no'
-- Alternatively by constraining it to only dicts in the @cspell npm organization
'nb-no'
}
}
})
Describe potential alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the mason.setup configuration path and how cspell is installed with npm. Implement support for selecting additional cspell language dictionaries, then verify that the configured packages are installed and linked appropriately without requiring a localization framework.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100