Skip to content

Commit c811f17

Browse files
rami3lmehalter
authored andcommitted
feat(moonbit): add neotest integration to the moonbit pack (#1261)
1 parent 9c67bb9 commit c811f17

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lua/astrocommunity/pack/moonbit/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ This plugin pack does the following:
1010
- Adds [`moonbit.nvim`](https://github.com/tonyfettes/moonbit.nvim) plugin which adds
1111
- Adds `moonbit` Treesitter parser
1212
- Adds `moonbit-lsp` language server
13+
- Adds `neotest-moonbit` neotest adapter

lua/astrocommunity/pack/moonbit/init.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ return {
1818
end
1919
end,
2020
},
21+
{
22+
"nvim-neotest/neotest",
23+
optional = true,
24+
dependencies = { "moonbit-community/moonbit.nvim" },
25+
opts = function(_, opts)
26+
if not opts.adapters then opts.adapters = {} end
27+
table.insert(opts.adapters, require "neotest-moonbit")
28+
end,
29+
},
2130
-- uncomment if/when moonbit-lsp is added to lspconfig and mason-lspconfig
2231
-- {
2332
-- "williamboman/mason-lspconfig.nvim",

0 commit comments

Comments
 (0)