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

Autocompletion for imported variables #485

Open
ju6ge opened this issue Apr 29, 2024 · 1 comment
Open

Autocompletion for imported variables #485

ju6ge opened this issue Apr 29, 2024 · 1 comment

Comments

@ju6ge
Copy link

ju6ge commented Apr 29, 2024

Hi,

I am using typst-lsp 0.13.0 and noticed that imported variables are not autocompleted.

Example: variable.typ

#let test_var = 100

Example: document.typ

#import "variable.typ": *

#test_var

Expected behavior:
when typing the variable name in the document.typ it should be suggested, just like functions. This also applies when do specific imports:

#import "variable.typ": test_var

Current Behavior:
Suggestions currently only seems to be based on already typed words in current lsp context / document. So variables are only suggested when the names has already been typend once in the current typst file.

@Myriad-Dreamin
Copy link
Collaborator

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

2 participants