Open thunderbird-1990 opened 1 year ago
Just realised that the settings should be put into ~/.vim/coc-settings.json
(which can be opened with :CocConfig
).
Example:
{
"ltex.language": "en-GB",
"ltex.disabledRules": {"en-GB": ["OXFORD_SPELLING_Z_NOT_S"]}
}
The online documentation (e.g., https://valentjn.github.io/ltex/vscode-ltex/installation-usage-coc-ltex.html) or the local one (e.g., ~/.config/coc/extensions/node_modules/coc-ltex/walkthrough/en/customizeSettings.md
) should still have a reference to this.
Note: Per the contribution guidelines, deleting parts of the template or not filling in vital information may result in the issue to be immediately closed as invalid.
Is your feature request related to a problem? Please describe. It is not well documented or obvious how the settings of
coc-ltex
(the Vim version) can be changed.To my knowledge, neither https://valentjn.github.io/ltex/settings.html nor https://valentjn.github.io/ltex/vscode-ltex/installation-usage-coc-ltex.html makes this very clear. The local documentations (
~/.config/coc/extensions/node_modules/coc-ltex/walkthrough/en/customizeSettings.md
on Linux) seems to be written forvscode-ltex
.I looked into the file and realised that settings can be changed in
~/.config/coc/extensions/node_modules/coc-ltex/package.json
. But it is not clear to me whether this is the intended way to customise the settings ofcoc-ltex
, nor whether this will survive future updates.Also, some settings don't work as expected when I directly change
~/.config/coc/extensions/node_modules/coc-ltex/package.json
. For instance, settingltex.language
to"default": "en-GB"
works, but settingltex.disabledRules
to"default": {"en-GB": ["OXFORD_SPELLING_Z_NOT_S"]}
has no effect and the Oxford spelling continues to be suggested.Describe the solution you'd like The page https://valentjn.github.io/ltex/vscode-ltex/installation-usage-coc-ltex.html should have a brief description on how settings of
coc-ltex
can be changed.Clarification on why changing
ltex.disabledRules
in the above mentioned way doesn't work would also be great.Describe alternatives you've considered I did Google this issue but couldn't find a clear answer.
Additional context None.