aboutsummaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/neotest.lua
blob: 87f503edfcfd096bd861f44a8b29299956fbb22d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
return {
  "nvim-neotest/neotest",
  dependencies = {
    "nvim-neotest/nvim-nio",
    "nvim-neotest/neotest-python",
    "nvim-neotest/neotest-go",
    "nvim-lua/plenary.nvim",
    "antoinemadec/FixCursorHold.nvim",
    "nvim-treesitter/nvim-treesitter"
  },
  config = function()
    require("neotest").setup({
      adapters = {
        require("neotest-python")({
          python = vim.fn.exepath("python"),
          runner = "pytest",
        }),
        require("neotest-go")
      },
      diagnostic = {
        enabled = true
      }
    })
  end
}