mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: moved stuff around.
This commit is contained in:
parent
300d300664
commit
0d7a5fab7b
22 changed files with 975 additions and 990 deletions
45
nvim/lua/user/plugins/ide/test.lua
Normal file
45
nvim/lua/user/plugins/ide/test.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
local icons = require('user.icons')
|
||||
|
||||
return {
|
||||
"nvim-neotest/neotest",
|
||||
dependencies = {
|
||||
"nvim-neotest/nvim-nio",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"antoinemadec/FixCursorHold.nvim",
|
||||
"nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
opts = {
|
||||
floating = {
|
||||
border = "none",
|
||||
},
|
||||
output = {
|
||||
enabled = true,
|
||||
open_on_run = true,
|
||||
},
|
||||
icons = {
|
||||
child_indent = icons.tree.vertical,
|
||||
child_prefix = icons.tree.node,
|
||||
collapsed = icons.tree.horizontal,
|
||||
non_collapsible = icons.tree.horizontal,
|
||||
expanded = icons.tree.expanded,
|
||||
final_child_indent = " ",
|
||||
final_child_prefix = icons.tree.nodelast,
|
||||
running_animated = { "⠋", "⠙", "⠚", "⠞", "⠖", "⠦", "⠴", "⠲", "⠳", "⠓" },
|
||||
passed = icons.test.ok,
|
||||
failed = icons.test.failed,
|
||||
running = icons.test.running,
|
||||
skipped = icons.test.skipped,
|
||||
unknown = icons.test.unknown,
|
||||
watching = icons.test.watch,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local adapters = {}
|
||||
for name, adapter_opts in pairs(opts.adapters or {}) do
|
||||
table.insert(adapters, require(name)(adapter_opts))
|
||||
end
|
||||
opts.adapters = adapters
|
||||
require('neotest').setup(opts)
|
||||
end
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue