-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When I have multiple Lua blocks injected in a YAML file, otter merges them all into one virtual buffer. This makes the LSP think they're all in the same scope, which causes annoying false positives.
What happens now:
tasks:
- name: task1
script: |-
local x = 1
print(x)
- name: task2
script: |-
local x = 2 -- LSP complains about redefined-local
print(x)These are completely separate scripts that run independently, but lua_ls sees them as one file and warns about redefined variables.
How can I make it so every different lua code in here be completely independent?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request