diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-09-24 02:56:53 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-09-24 02:56:53 +0200 |
| commit | 0f6cee92221dc517bd756083e260dd9373851b82 (patch) | |
| tree | c6d929fa5832d17a2d1fe3c85744bae7621ed447 /common/nvim/lua/plugins/neotest.lua | |
| parent | 3cf613ec7c90ab4933728b0f19e49b0c955c17bb (diff) | |
| download | dotfiles-0f6cee92221dc517bd756083e260dd9373851b82.tar.gz dotfiles-0f6cee92221dc517bd756083e260dd9373851b82.zip | |
Moved files to common/
Diffstat (limited to 'common/nvim/lua/plugins/neotest.lua')
| -rwxr-xr-x | common/nvim/lua/plugins/neotest.lua | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/common/nvim/lua/plugins/neotest.lua b/common/nvim/lua/plugins/neotest.lua deleted file mode 100755 index 1034d33..0000000 --- a/common/nvim/lua/plugins/neotest.lua +++ /dev/null @@ -1,38 +0,0 @@ -local M = {} - -function M.setup() - local ok, neotest = pcall(require, "neotest") - if not ok or not neotest then - return false - end - - -- Safely require adapters - local python_ok, python_adapter = pcall(require, "neotest-python") - local plenary_ok, plenary_adapter = pcall(require, "neotest-plenary") - local vim_test_ok, vim_test_adapter = pcall(require, "neotest-vim-test") - - local adapters = {} - if python_ok and python_adapter then - table.insert(adapters, python_adapter({ - dap = { justMyCode = false }, - })) - end - - if plenary_ok and plenary_adapter then - table.insert(adapters, plenary_adapter) - end - - if vim_test_ok and vim_test_adapter then - table.insert(adapters, vim_test_adapter({ - ignore_file_types = { "python", "vim", "lua" }, - })) - end - - neotest.setup({ - adapters = adapters, - }) - - return true -end - -return M |
