Skip to content

Commit

Permalink
revert: #74: Revert adapter breaking changes (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpetrovmain authored Apr 21, 2023
1 parent 979b601 commit b874576
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 100 deletions.
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Changelog

## [2.0.2](https://github.com/jay-babu/mason-nvim-dap.nvim/compare/v2.0.1...v2.0.2) (2023-04-19)


### Performance Improvements

* Lazily require adapter mappings ([#70](https://github.com/jay-babu/mason-nvim-dap.nvim/issues/70)) ([9816e2a](https://github.com/jay-babu/mason-nvim-dap.nvim/commit/9816e2aa07872636018dc501753c119943c592f7))

## [2.0.1](https://github.com/jay-babu/mason-nvim-dap.nvim/compare/v2.0.0...v2.0.1) (2023-04-09)


Expand Down
92 changes: 92 additions & 0 deletions lua/mason-nvim-dap/mappings/adapters.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
local settings = require('mason-nvim-dap.settings')

local M = {}

M.bash = {
type = 'executable',
command = vim.fn.exepath('bash-debug-adapter'),
}

-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go-using-delve-directly
M.delve = {
type = 'server',
port = '${port}',
executable = {
command = vim.fn.exepath('dlv'),
args = { 'dap', '-l', '127.0.0.1:${port}' },
},
}

M.python = {
type = 'executable',
command = vim.fn.exepath('debugpy-adapter'),
}

M.node2 = {
type = 'executable',
command = vim.fn.exepath('node-debug2-adapter'),
}

M.chrome = {
type = 'executable',
command = vim.fn.exepath('chrome-debug-adapter'),
}

M.firefox = {
type = 'executable',
command = vim.fn.exepath('firefox-debug-adapter'),
}

M.php = {
type = 'executable',
command = vim.fn.exepath('php-debug-adapter'),
}

M.coreclr = {
type = 'executable',
command = vim.fn.exepath('netcoredbg'),
args = { '--interpreter=vscode' },
}

M.cppdbg = {
id = 'cppdbg',
type = 'executable',
command = vim.fn.exepath('OpenDebugAD7'),
}
if vim.fn.has('win32') == 1 then
M.cppdbg.options = {
detached = false,
}
end

M.codelldb = {
type = 'server',
port = '${port}',
executable = {
command = vim.fn.exepath('codelldb'),
args = { '--port', '${port}' },
},
}
if vim.fn.has('win32') == 1 then
M.codelldb.executable.detached = false
end

M.mix_task = {
type = 'executable',
command = vim.fn.exepath('elixir-ls-debugger'), -- https://github.com/williamboman/mason.nvim/blob/d97579ccd5689f9c6c365e841ea99c27954112ec/lua/mason-registry/elixir-ls/init.lua#L26
args = {},
}

M.kotlin = {
type = 'executable',
command = vim.fn.exepath('kotlin-debug-adapter'),
args = { '--interpreter=vscode' },
}

M.dart = {
type = 'executable',
command = vim.fn.exepath('dart-debug-adapter'),
args = { 'flutter' },
}

return M
4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/bash.lua

This file was deleted.

4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/chrome.lua

This file was deleted.

14 changes: 0 additions & 14 deletions lua/mason-nvim-dap/mappings/adapters/codelldb.lua

This file was deleted.

5 changes: 0 additions & 5 deletions lua/mason-nvim-dap/mappings/adapters/coreclr.lua

This file was deleted.

12 changes: 0 additions & 12 deletions lua/mason-nvim-dap/mappings/adapters/cppdbg.lua

This file was deleted.

5 changes: 0 additions & 5 deletions lua/mason-nvim-dap/mappings/adapters/dart.lua

This file was deleted.

9 changes: 0 additions & 9 deletions lua/mason-nvim-dap/mappings/adapters/delve.lua

This file was deleted.

4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/firefox.lua

This file was deleted.

14 changes: 0 additions & 14 deletions lua/mason-nvim-dap/mappings/adapters/init.lua

This file was deleted.

5 changes: 0 additions & 5 deletions lua/mason-nvim-dap/mappings/adapters/kotlin.lua

This file was deleted.

5 changes: 0 additions & 5 deletions lua/mason-nvim-dap/mappings/adapters/mix_task.lua

This file was deleted.

4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/node2.lua

This file was deleted.

4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/php.lua

This file was deleted.

4 changes: 0 additions & 4 deletions lua/mason-nvim-dap/mappings/adapters/python.lua

This file was deleted.

0 comments on commit b874576

Please sign in to comment.