Skip to content

Commit afb87c6

Browse files
author
Antonio Costa
authored
docs(README): change lua code block style (#21)
1 parent adc99b8 commit afb87c6

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,32 @@ Using packer:
88

99
```lua
1010
use({
11-
'nvim-neotest/neotest',
11+
"nvim-neotest/neotest",
1212
requires = {
13-
...,
14-
'nvim-neotest/neotest-go',
15-
}
13+
"nvim-neotest/neotest-go",
14+
-- Your other test adapters here
15+
},
1616
config = function()
1717
-- get neotest namespace (api call creates or returns namespace)
1818
local neotest_ns = vim.api.nvim_create_namespace("neotest")
1919
vim.diagnostic.config({
2020
virtual_text = {
2121
format = function(diagnostic)
22-
local message = diagnostic.message
23-
:gsub("\n", " ")
24-
:gsub("\t", " ")
25-
:gsub("%s+", " ")
26-
:gsub("^%s+", "")
22+
local message =
23+
diagnostic.message:gsub("\n", " "):gsub("\t", " "):gsub("%s+", " "):gsub("^%s+", "")
2724
return message
2825
end,
2926
},
3027
}, neotest_ns)
31-
require('neotest').setup({
32-
...,
28+
require("neotest").setup({
29+
-- your neotest config here
3330
adapters = {
34-
require('neotest-go'),
35-
}
31+
require("neotest-go"),
32+
},
3633
})
37-
end
34+
end,
3835
})
36+
3937
```
4038

4139
The above mentioned `vim.diagnostic.config` is optional but recommended if you

0 commit comments

Comments
 (0)