Replies: 1 comment 1 reply
-
Yeah, I think removing it makes more sense. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, all code actions are sorted by their title:
none-ls.nvim/lua/null-ls/code-actions.lua
Lines 38 to 41 in cf81e76
But not all code action sources want an alphabetical order.
For example, in the CSpell code actions, I would like to show fixes, suggestions, and actions to add exceptions in that order.
The source already inserts the actions in the desired order, but as soon as we pass the action to none-ls, the table gets sorted by title, which is different from what the source intended.
How do we feel about just removing the sorting? Alternatively, we could update the generator API to read a sorting function for the code actions.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions