Skip to content
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

Let helm-ls show the values of templates #26

Open
franroa opened this issue Apr 18, 2023 · 8 comments
Open

Let helm-ls show the values of templates #26

franroa opened this issue Apr 18, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@franroa
Copy link

franroa commented Apr 18, 2023

Hi there, this is a very nice plugin. I was wondering if you have in mind to replace the values in the templates where they are defined. That would be awesome feature.
Thanks!

@mrjosh mrjosh added the enhancement New feature or request label Jun 4, 2023
@qvalentin
Copy link
Collaborator

Can someone elaborate how this should be implemented?
Hover is already working pretty well.
Or do you mean inlay hints?

@franroa
Copy link
Author

franroa commented Feb 4, 2024

Inlay hints good also be a good option. I think not everyone is using that, though.

It would be really nice to show the values when the cursor is not in the line, and show the template when the cursor is in the line

@qvalentin
Copy link
Collaborator

simplescreenrecorder-2024-08-25_17.15.02.mp4

I did some lua hacking in neovim and this is what i got by now.

It is using tree-sitter to get some nodes and then calls helm-ls with hover to get the text replacements.

Is there interest to turn this into a neovim plugin?

@franroa
Copy link
Author

franroa commented Aug 25, 2024

That looks pretty cool!

@franroa
Copy link
Author

franroa commented Aug 26, 2024

Can I post this on reddit? I think you could get more interested people there. In any case, I would like to have it

@qvalentin
Copy link
Collaborator

@franroa sure, go ahead.

@qvalentin
Copy link
Collaborator

I published the current wip version here: https://github.com/qvalentin/helm-ls.nvim

@franroa
Copy link
Author

franroa commented Aug 26, 2024

awesome! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants