You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,8 +216,18 @@ defold.setup(config)
216
216
1. Install the plugin (see above)
217
217
2. Install [Defold](https://defold.com/)
218
218
3. Start Defold and open a project
219
-
4. Open Neovim in the projects directory and run `:SetupDefold`
220
-
5. Done, when you try to open files via Defold now they should open in a Neovim window.
219
+
4. Open Neovim in the projects directory once (Defold must be running)
220
+
5. Done, when you try to open files via Defold now they open in your current Neovim instance or in a new window if none could be found.
221
+
222
+
#### Manual Setup
223
+
224
+
If you have the auto setup for the Defold external editor disabled and/or you want to initialize this a different way, use:
225
+
226
+
`:lua require("defold").setup_default_editor()`
227
+
228
+
Similarly the Debugger can be initialized using
229
+
230
+
`:lua require("defold").setup_debugger()`
221
231
222
232
### Setup Debugging
223
233
@@ -253,14 +263,16 @@ Here's how you can interact with Defold directly from Neovim:
253
263
***:DefoldFetch**
254
264
This command fetches all Defold dependencies and creates annotations for the Lua LSP. Run with bang to force re-downloading the annotations.
255
265
256
-
***:SetupDefold**
257
-
This commands does the required setup for Defold to use Neovim as its external editor (this will be done by default unless disabled, see config above)
258
-
259
266
## Troubleshooting
260
267
261
268
Should you have problems, please open Neovim (preferably through Defold) and use the command `:checkhealth defold`, this should give you a short list of several checks that might help to identify
262
269
the issue. If it didn't, please be sure to include the health check if you report the issue.
263
270
271
+
There are also logs available, you can find the paths inside `:checkhealth defold`.
272
+
273
+
-**System > Cache Dir**: The location of the plugin logs
274
+
-**Sidecar > Sidecar Cache Dir**: The location of the sidecar (Neovim native extension) and bridge (Tool that calls Neovim instances)
0 commit comments