From aab9e4bfdb08d58d3bcb3c0b487644b262746294 Mon Sep 17 00:00:00 2001 From: Administrator Date: Sun, 31 Mar 2024 10:55:56 +0100 Subject: [PATCH] Removed testing/debuging config not ready --- after/plugin/nvim-dap-vscode-js.lua | 38 ----------- lua/eddie/lazy.lua | 98 ----------------------------- 2 files changed, 136 deletions(-) delete mode 100644 after/plugin/nvim-dap-vscode-js.lua diff --git a/after/plugin/nvim-dap-vscode-js.lua b/after/plugin/nvim-dap-vscode-js.lua deleted file mode 100644 index 5c1145b..0000000 --- a/after/plugin/nvim-dap-vscode-js.lua +++ /dev/null @@ -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 diff --git a/lua/eddie/lazy.lua b/lua/eddie/lazy.lua index 4d04d47..ab2ed32 100644 --- a/lua/eddie/lazy.lua +++ b/lua/eddie/lazy.lua @@ -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' },