Skip to content

Commit 56f680b

Browse files
committed
add editor guides into readme
1 parent 0081d69 commit 56f680b

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,38 @@ moonbug.listen(host, port, {
2020

2121
Thats it.
2222

23+
## Editor Integrations
24+
25+
### Neovim
26+
27+
Requires you have [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) setup.
28+
29+
```lua
30+
local dap = require "dap"
31+
32+
dap.configurations.lua = {
33+
{
34+
type = "moonbug",
35+
request = "attach",
36+
name = "moonbug",
37+
project_root_dir = "${workspaceFolder}",
38+
},
39+
}
40+
41+
dap.adapters.moonbug = {
42+
id = "moonbug",
43+
type = "server",
44+
port = os.getenv "MOONBUG_PORT" or 8888,
45+
}
46+
```
47+
48+
### Visual Studio Code
49+
50+
We have an official Visual Studio Code extension available here:
51+
52+
- Visual Studio Code Extension Store (coming soon...)
53+
- [Github](https://github.com/atomicptr/vscode-moonbug)
54+
2355
## Supported Lua Versions
2456

2557
- LuaJIT 2.x

0 commit comments

Comments
 (0)