nvf
nvf copied to clipboard
cmp sources ordering
⚠️ 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
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
#404