Removed testing/debuging config not ready

This commit is contained in:
Administrator 2024-03-31 10:55:56 +01:00
parent 010847cd73
commit aab9e4bfdb
2 changed files with 0 additions and 136 deletions

View File

@ -1,38 +0,0 @@
require("dap-vscode-js").setup({
debugger_path = '/Users/andrew/vscode-js-debug',
adapters = { 'pwa-node', 'pwa-chrome', 'pwa-msedge', 'node-terminal', 'pwa-extensionHost' }, -- which adapters to register in nvim-dap
})
for _, language in ipairs({ "typescript", "javascript", "typescriptreact" }) do
require("dap").configurations[language] = {
{
type = "pwa-node",
request = "launch",
name = "Debug Jest Tests",
-- trace = true, -- include debugger info
runtimeExecutable = "node",
runtimeArgs = {
"./node_modules/jest/bin/jest.js",
"--runInBand",
},
rootPath = "${workspaceFolder}",
cwd = "${workspaceFolder}",
console = "integratedTerminal",
internalConsoleOptions = "neverOpen",
},
{
type = "pwa-node",
request = "launch",
name = "Launch file",
program = "${file}",
cwd = "${workspaceFolder}",
},
{
type = "pwa-node",
request = "attach",
name = "Attach",
processId = require("dap.utils").pick_process,
cwd = "${workspaceFolder}",
},
}
end

View File

@ -104,104 +104,6 @@ local plugins = {
},
{ 'vimwiki/vimwiki' },
{ "nvim-tree/nvim-tree.lua" },
{
"nvim-neotest/neotest",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
"antoinemadec/FixCursorHold.nvim",
"olimorris/neotest-rspec",
"haydenmeade/neotest-jest",
"zidhuss/neotest-minitest",
"mfussenegger/nvim-dap",
"jfpedroza/neotest-elixir",
},
opts = {
adapters = {
["neotest-elixir"] = {},
["neotest-minitest"] = {},
},
},
config = function()
local neotest = require('neotest')
local neotest_jest = require('neotest-jest')({
jestCommand = 'npm test --'
})
neotest_jest.filter_dir = function(name)
return name ~= 'node_modules' and name ~= '__snapshots__'
end
neotest.setup({
adapters = {
require('neotest-rspec')({
rspec_cmd = function()
return vim.tbl_flatten({
"bundle",
"exec",
"rspec",
})
end
}),
neotest_jest,
},
output_panel = {
enabled = true,
open = "botright split | resize 15"
},
quickfix = {
open = false,
}
})
end
},
{
"mfussenegger/nvim-dap",
dependencies = {
{
"rcarriga/nvim-dap-ui",
config = function(_, opts)
local dap = require("dap")
local dapui = require("dapui")
dapui.setup(opts)
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open({})
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close({})
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close({})
end
end,
},
{
"suketa/nvim-dap-ruby",
config = function()
require("dap-ruby").setup()
end,
},
{
"theHamsta/nvim-dap-virtual-text",
opts = {},
},
{
"jay-babu/mason-nvim-dap.nvim",
dependencies = "mason.nvim",
cmd = { "DapInstall", "DapUninstall" },
opts = {
automatic_installation = true,
handlers = {},
ensure_installed = {},
},
},
{ "jbyuki/one-small-step-for-vimkind", module = "osv" },
},
},
{
"mxsdev/nvim-dap-vscode-js",
dependencies = { "mfussenegger/nvim-dap" }
},
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },