chore: save config

This commit is contained in:
Kiruel 2025-06-17 23:49:59 +02:00
parent 1b26f91faa
commit dc228a038b
16 changed files with 779 additions and 91 deletions

View file

@ -2,14 +2,13 @@ return {
"nvim-neotest/neotest",
dependencies = {
"nvim-lua/plenary.nvim",
"antoinemadec/FixCursorHold.nvim",
"sidlatau/neotest-dart"
},
config = function()
require('neotest').setup({
adapters = {
require('neotest-dart') {
command = 'fvm flutter', -- Command being used to run tests. Defaults to `flutter`
command = 'flutter', -- Command being used to run tests. Defaults to `flutter`
-- Change it to `fvm flutter` if using FVM
-- change it to `dart` for Dart only tests
use_lsp = true, -- When set Flutter outline information is used when constructing test name.
@ -29,6 +28,11 @@ return {
end, { desc = 'Test: [T]oggle [O]utput' })
vim.keymap.set('n', '<leader>rtD', function()
-- neotest.run.run()
neotest.run.run({ strategy = 'dap' })
end, { desc = 'Test: [R]un [T]ests' })
vim.keymap.set('n', '<leader>rt', function()
neotest.run.run()
end, { desc = 'Test: [R]un [T]ests' })