mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
Move Emmylua annotations to Druid folder
This commit is contained in:
parent
1cfec9df15
commit
d44e196b96
@ -53,8 +53,8 @@ button:set_click_zone(scroll.view_node)
|
|||||||
|
|
||||||
|
|
||||||
### Q: How to use EmmyLua annotations? _(from Druid 0.6.0)_
|
### Q: How to use EmmyLua annotations? _(from Druid 0.6.0)_
|
||||||
**A:** Since the dependencies can't be processed by external editors, for use generated EmmyLua annotations you should copy the _annotations.lua_ to your project. For EmmyLua it will be enough. Remember you can _restart emmylua server_ for refresh the changes, if something goes wrong.
|
**A:** Since the dependencies can't be processed by external editors, for use generated EmmyLua annotations you should copy the _druid/annotations.lua_ to your project. For EmmyLua it will be enough. Remember you can _restart emmylua server_ for refresh the changes, if something goes wrong.
|
||||||
After the annotations is processed, you should point the type of druid in requires:
|
After the annotations is processed, you should point the type of Druid in requires:
|
||||||
```lua
|
```lua
|
||||||
---@type druid
|
---@type druid
|
||||||
local druid = require("druid.druid")
|
local druid = require("druid.druid")
|
||||||
|
@ -12,4 +12,4 @@ echo ""
|
|||||||
echo "Update EmmyLua annotations"
|
echo "Update EmmyLua annotations"
|
||||||
original_path=$(pwd)
|
original_path=$(pwd)
|
||||||
bash $emmylua_generator_path/export.sh $original_path
|
bash $emmylua_generator_path/export.sh $original_path
|
||||||
mv $emmylua_generator_path/annotations.lua $original_path/annotations.lua
|
mv $emmylua_generator_path/annotations.lua $original_path/druid/annotations.lua
|
||||||
|
Loading…
x
Reference in New Issue
Block a user