antonk52 / basics-language-server

Buffer, path, and snippet completions
MIT License
53 stars 0 forks source link

FR: some sort of prioritization/weighting options #5

Open chrisgrieser opened 1 week ago

chrisgrieser commented 1 week ago

Using a completion plugin like cmp or now blink.cmp, there are various options for to adjust the individual weight/priority of the sources. This is useful, for example, to deprioritize buffer (which tends to crowd out other suggestions) or prioritize snippets.

To be able to use basics_ls as a proper replacement for a completion plugin, I think many users would need some sort of prioritization like that.

antonk52 commented 1 week ago

As far as I am aware there is nothing that can be done from the language server that can affect prioritization. This is something that can be achieved in the completion engine a.k.a. the consumer of LS' completions.

I am happy to be proven wrong here.