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

No autocomplete on branching statements #1086

Open
phenpessoa opened this issue Mar 3, 2025 · 0 comments
Open

No autocomplete on branching statements #1086

phenpessoa opened this issue Mar 3, 2025 · 0 comments

Comments

@phenpessoa
Copy link
Contributor

Describe the bug
I don't get any auto completion on .templ files for branching statements such as for loops and ifs. I do get autocomplete on expressions though.

To Reproduce
Try to get auto complete on neovim on branching statements.
I don't know if this is helpful, but here is my config: https://github.com/phenpessoa/nvim

Expected behavior
Auto complete shows up as expected.

Screenshots
Image

templ info output

(✓) os [ goos=linux goarch=amd64 ]
(✓) go [ location=/usr/local/go/bin/go version=go version go1.24.0 linux/amd64 ]
(✓) gopls [ location=/home/phenpessoa/.local/share/nvim/mason/bin/gopls version=golang.org/x/tools/gopls v0.18.1 ]
(✓) templ [ location=/home/phenpessoa/go/bin/templ version=v0.3.833 ]

Desktop (please complete the following information):

  • OS: linux
  • templ CLI version v0.3.833
  • Go version go1.24.0 linux/amd64
  • gopls version golang.org/x/tools/gopls v0.18.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant