-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LSP Extensions support #256
Comments
fwiw, at #252, the two reports of testers at the end pointed that snippet placeholder selection isn't working. |
@oblitum selection in same file works as expect, but fails on another file, this also happens with RA+VSCode extension, rust-lang/rust-analyzer#4551. I've disabled selection for different file. |
I only tested it in same file, didn't work for me. Meaning, just writing |
@oblitum can't reproduce the error in same file tests, selection will not go to the end of file. |
k, fwiw, this is my setup:
If @TimoFreiberg could chime in to state whether this report was about a trivial test in the same file or not, it would be great. |
@oblitum reproduced your issue, very very weird behavior: fn main() {
foo();
} // -- no new line EOF this will add fn main() {
foo();
}
// -- with new line EOF this will add |
@fannheyward I confirm it's just like that. |
Sorry for the delay, yeah I was also talking about that. |
@fannheyward realize that i'm late here but i just wanted to chime in on the decorations/inlay hints - currently it is supported for chained calls, but it'd be super nice to have for inferred types as well so that you could do e.g. |
@fannheyward yeah i realize this but in nvim we could with the decoration API right? (i assume thats how inlayHints work now for chained calls?) |
@fannheyward Ah, okay now i read that maybe that API doesn't work either (can't insert virtual text in the middle of "real" text) I understand, thanks! |
Is https://rust-analyzer.github.io/manual.html#workspace-symbol anywhere planed or did I miss something by any chance? thanks |
@pierreN try |
LSP 3.16 will add code action resolving support, need to switch to upstream when LSP 3.16 ready rust-lang/rust-analyzer#6521 |
LSP 3.16 has file operations, which can be super useful for rust projects: rust-lang/rust-analyzer#7009 |
@fannheyward "Range hover" is marked as done but the commit was reverted (d6b4f33), could you please contextualize? Happy to help with the implementation if you need it |
@resolritter yes, I reverted and pushed it to another branch https://github.com/fannheyward/coc-rust-analyzer/tree/feat/range-hover, the problem is I did find a better way to make Range hover work with nnoremap K. Do you have any ideas? |
You're using getSelectedRange while expecting Vim to be in visual mode, however While you could use So, in short, the solution is to make the mapping work like |
@resolritter sorry for the delay and thank you for your help, I'm busy today, will check this next week. |
For range hover, you need mappings like |
Almost
If you jump to place holder 2 it will contain available |
@hungpham3112 can't reproduce, in my tests, the |
I suggest the new |
@hungpham3112 the snippets are came from rust-analyzer, post your feature request to rust-analyzer. |
Any plans to implement Inlay Hints now that Vim supports virtual text? |
@AceofSpades5757 this will add in coc.nvim |
ResolveCodeAction
The text was updated successfully, but these errors were encountered: