-
Notifications
You must be signed in to change notification settings - Fork 306
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
Add LspPeekDefinition #412
Add LspPeekDefinition #412
Conversation
Can you make use of the changes that came in this PR which just got merged. #395 |
@jerdna-regeiz could you have a look at this PR first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I'll love that feature.
Still have some remarks (other than the already TODO-comments from yourself).
When |
@jerdna-regeiz Thanks for reviewing my PR! Regarding my TODO, I tried |
@thomasfaingnaert Have you tried to set the option afterwards with |
There's also quite a bit of complex conditionals, which I'm not a big fan of. Perhaps we should set 3 boolean script variables if s:supports_floating && g:lsp_preview_float && !has('nvim') |
I agree, but it could be done in a separate PR to not mix a new feature with refactoring. |
Tried fixing Vim alignment of the popup window in ccaf0f9, but I'm facing one more issue: |
18a5fc1
to
fefa218
Compare
Add LspPeekImplementation, LspPeekTypeDefinition and LspPeekDeclaration.
Added Peek commands for implementation, type definition and declaration. I have not been able to test these, because I don't have a language server that supports these, but they should work the same as LspPeekDefinition. As for LspReferences, I'm not sure if it would make sense to use the popup window for those, because you have to interact with the quickfix list to go through the list of references? |
I think it's fine as is -- if somebody comes up with a use case for |
@thomasfaingnaert This has merge conflicts. Can you fix it? |
@prabirshrestha Fixed merge conflicts. |
@thomasfaingnaert Current behavior is good. I had also sent you an email but haven't got any reply. Can you send me an email. You can find my email at https://github.com/prabirshrestha |
Adds
:LspPeekDefinition
, which displays the definition in the preview window, similar to VSCode's peek definition.Fixes #411