You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the LSP provides code actions like this:
coole
Code actions:
1. Replace with: "cooled"
2. Replace with: "woolen"
3. Replace with: "cool"
4. Add "coole" to the global dictionary.
5. Add "coole" to the file dictionary.
This means that depending on the number of auto-correct suggestions, the Add to dictionary actions will be in different spots. This is kind of annoying, because now I have to do a little extra thinking to look at the number corresponding to the action I want, and then pressing it. It would be nice to have the Add to dictionary actions be first in the list, so that I know I can always press 1 to add to the global dictionary, 2 to add to the file dictionary, 3 to select the first auto-correct suggestion, and so on.
I know that this might be weird for some people, so it would definitely be best as an optional setting.
The text was updated successfully, but these errors were encountered:
Sorry it took so long for me to respond to this. I've added a config option to harper-ls to do what you describe: forceStable. An example config for Neovim using lspconfig:
This will instruct harper-ls to place consistent code actions (that aren't dependent on specific words or anything like that) to the top, in "stable" positions.
I don't plan on doing another release within the next week or so, which means if you want this ASAP, you'll have to build from source. Let me know if you have any other issues!
Currently, the LSP provides code actions like this:
coole
This means that depending on the number of auto-correct suggestions, the
Add to dictionary
actions will be in different spots. This is kind of annoying, because now I have to do a little extra thinking to look at the number corresponding to the action I want, and then pressing it. It would be nice to have theAdd to dictionary
actions be first in the list, so that I know I can always press1
to add to the global dictionary,2
to add to the file dictionary,3
to select the first auto-correct suggestion, and so on.I know that this might be weird for some people, so it would definitely be best as an optional setting.
The text was updated successfully, but these errors were encountered: