nvf icon indicating copy to clipboard operation
nvf copied to clipboard

cmp sources ordering

Open horriblename opened this issue 1 year ago • 1 comments

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

  • [X] 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

horriblename avatar Oct 13 '23 13:10 horriblename

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

NotAShelf avatar Oct 14 '23 10:10 NotAShelf

#404

diniamo avatar Oct 10 '24 20:10 diniamo