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

[bug,neovim] Inconsistent auto completion behaviour #118

Open
eshepelyuk opened this issue Nov 18, 2024 · 1 comment
Open

[bug,neovim] Inconsistent auto completion behaviour #118

eshepelyuk opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@eshepelyuk
Copy link

eshepelyuk commented Nov 18, 2024

I am using NeoVim,

  • nvim-cmp to get completions from the LSP
  • (nvim-lspconfig)[https://github.com/neovim/nvim-lspconfig] for starting LSP servers
  • helm-ls.nvim

Steps to reproduce

To reproduce - create two files with following content:

  1. values.yaml
foo:
  bar: qwerty
  1. templates/test.yaml
test_new:
test_existing: {{ .Values.foo.bar }}

Bug description

Open templates/test.yaml, and try to add a value to test_new key,
Triggering autocompletion after .Values. or triggering autocompletion after .Values.f provides expected values.
image

But if one tries to edit test_existing: {{ .Values.foo.bar }} and trigger autocompletion after .Values. or .Values.f -
incorrect values are returned
image

I am not sure it's not a NeoVim/NeoVim plugins bug, so forgive me if I opened it in the wrong GitHub project.

@qvalentin
Copy link
Collaborator

qvalentin commented Nov 19, 2024

Thanks for the clear issue report.

As the test in #119 shows this seems to bee a problem of helm-ls.
I just never thought about the case where there is no space after the cursor.

@qvalentin qvalentin added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants