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

Fix disabling supermaven-nvim conditionally #130

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bogzbonny
Copy link

For context I'm using the conditional mechanism to keep supermaven disabled by default and only enabled for specific filetypes (there is no other way to achieve this currently).

The way the condition feature is described in the README leads me to suggest that to accomplish this "default off" behaviour I should be able to use this mechanism.

The original code will basically shut down supermaven completely whenever the condition function is evaluated to false, this becomes a problem if you have multiple files open in the same neovim session, as soon as you open one which has a false condition then immediately supermaven is shut down for all other files.

This PR fixes this issue by using the condition in much the same way that the ignore_filetypes is used.

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.

1 participant