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

cmp sources ordering #153

Closed
1 task done
horriblename opened this issue Oct 13, 2023 · 2 comments
Closed
1 task done

cmp sources ordering #153

horriblename opened this issue Oct 13, 2023 · 2 comments

Comments

@horriblename
Copy link
Collaborator

horriblename commented Oct 13, 2023

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

🏷️ Feature Type

API Additions

🔖 Feature description

currently cmp sources are ordered alphabetically with no possibility of reordering. this means that the buffer source will always show up before LSP source in the cmp menu, which is kinda annoying.

✔️ Solution

we could probably slap another option on top of autocomplet.sources which uses a dag instead of attrset. But that'd be a pain to configure

might be worth using custom merge function to allow something like:

sources = {
  buffer = {name = "[Buffer]"; priority = 2;};
  nvim_lsp = {name = "[LSP]"; priority = 1;};
};

❓ Alternatives

No response

📝 Additional Context

No response

@NotAShelf
Copy link
Owner

sounds like a good idea, although I am not very sure how we'd go around doing it currently - I'll try to take a look

@diniamo diniamo mentioned this issue Oct 5, 2024
4 tasks
@diniamo
Copy link
Collaborator

diniamo commented Oct 10, 2024

#404

@diniamo diniamo closed this as completed Oct 10, 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

No branches or pull requests

3 participants