Fix disabling supermaven-nvim conditionally #130
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bogzbonny/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
conditionfeature 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
conditionfunction 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 falseconditionthen immediately supermaven is shut down for all other files.This PR fixes this issue by using the
conditionin much the same way that theignore_filetypesis used.Oh thank you. I've been wondering why my supermaven regularly was turned off, and it was indeed
conditionfor me as well.Having
conditionpermanently turn off supermaven without re-enabling it again is quite counterintuitive indeed.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.