Allow disable_inline_completion to be a function #119

Open
dfrommi wants to merge 1 commit from dfrommi/disable-inline-as-function into main
dfrommi commented 2024-11-17 04:46:17 -05:00 (Migrated from github.com)

Inline completions can be disabled per buffer, but sometimes you want to disable supermaven only temporarily.
This change allows disable_inline_completion to be a function in addition to a boolean, adding more flexibility.

A possible setup:
Supermaven is on by default. But when cmp-nvim is triggered via shortcut, it is disabled to avoid suggestions mess.

Inline completions can be disabled per buffer, but sometimes you want to disable supermaven only temporarily. This change allows `disable_inline_completion` to be a function in addition to a boolean, adding more flexibility. A possible setup: Supermaven is on by default. But when cmp-nvim is triggered via shortcut, it is disabled to avoid suggestions mess.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dfrommi/disable-inline-as-function:dfrommi/disable-inline-as-function
git switch dfrommi/disable-inline-as-function

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.

git switch main
git merge --no-ff dfrommi/disable-inline-as-function
git switch dfrommi/disable-inline-as-function
git rebase main
git switch main
git merge --ff-only dfrommi/disable-inline-as-function
git switch dfrommi/disable-inline-as-function
git rebase main
git switch main
git merge --no-ff dfrommi/disable-inline-as-function
git switch main
git merge --squash dfrommi/disable-inline-as-function
git switch main
git merge --ff-only dfrommi/disable-inline-as-function
git switch main
git merge dfrommi/disable-inline-as-function
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
supermaven-inc/supermaven-nvim!119
No description provided.