Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Autocompletion for imported variables #485

@ju6ge

Description

@ju6ge

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions