Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to disable rules #17

Open
uliw opened this issue Jan 2, 2025 · 1 comment
Open

unable to disable rules #17

uliw opened this issue Jan 2, 2025 · 1 comment

Comments

@uliw
Copy link

uliw commented Jan 2, 2025

I have the following in my dir-locals.el

((nil .
  ((eglot-workspace-configuration
    . (:ltex-ls  (:language  "en-US"
	          :disabledRules ["MORFOLOGIK_RULE_EN_US"
				  "CONSECUTIVE_SPACES"]
                  :additionalRules (:motherTongue "de-DE")))))))

and eglot-show-workspace-configuration shows

{
  "ltex-ls": {
    "language": "en-US",
    "disabledRules": [
      "MORFOLOGIK_RULE_EN_US",
      "CONSECUTIVE_SPACES"
    ],
    "additionalRules": {
      "motherTongue": "de-DE"
    }
  }
}

, yet, when I check the buffer, the above rules are still active. What am I missing here?

@uliw
Copy link
Author

uliw commented Jan 3, 2025

update, the above should read

(:language "en-US" :disabledRules (:en-US ["MORFOLOGIK_RULE" "CONSECUTIVE_SPACES"]))))

which yields:

"ltex-ls":{"language":"en-US","disabledRules":{"en-US":["MORFOLOGIK_RULE","CONSECUTIVE_SPACES"]}}}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant