sidlatau / neotest-dart

30 stars 8 forks source link

Can't get plugin to work with lazyvim #14

Closed JonathanSiddle closed 7 months ago

JonathanSiddle commented 7 months ago

Hey,

This is probably not an issue with the plugin, but any help you can provide would be appreciated :) I am new to Neovim and trying to set up Flutter with lazyvim. I have got the status sidebar to display files with tests but it does not seem to pick up individual test, likewise if I put my curser in a test and try to run I get a notice 'no tests found'.

I followed this guide to get set-up: https://www.lazyvim.org/extras/test/core, I managed to get Go tests working so I think the core-set up is OK. I have tried various combinations but this is what the plugin file currently looks like:

{
    "nvim-neotest/neotest",
    dependencies = {
      "sidlatau/neotest-dart",
      "nvim-lua/plenary.nvim",
      "antoinemadec/FixCursorHold.nvim",
      "nvim-treesitter/nvim-treesitter",
    },
    opts = {
      adaters = {
        ["neotest-dart"] = {
          command = "flutter",
          use_lsp = true,
        },
      },
    },
  },

Any ideas what could be going wrong?

Thanks

sidlatau commented 7 months ago

I am not using lazyvim distro, so no ideas. You may check my configuration, maybe that will be helpful: https://github.com/sidlatau/dotfiles/blob/master/nvim/.config/nvim/lua/plugins/neotest.lua.