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

feat: allow nil for languages #95

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Conversation

benlubas
Copy link
Contributor

@benlubas benlubas commented Mar 1, 2024

Allows you to pass nil to activate() for languages. When languages is nil, it's set to all the languages that otter supports.

Currently if you pass nil it just errors out, and there is no easy way to just "enable all the languages"

Bonus, there's no errors when you don't have a language server configured for a given language.

Copy link
Owner

@jmbuhr jmbuhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, I think with my recent changes this should then only activate the languages actually found in the document.

@jmbuhr jmbuhr merged commit 6234723 into jmbuhr:main Mar 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants