Nvim: add dap
This commit is contained in:
parent
409ae40b9e
commit
8f16f4c284
2 changed files with 34 additions and 1 deletions
31
home/.config/nvim/lua/plugins/dap.lua
Normal file
31
home/.config/nvim/lua/plugins/dap.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
return function()
|
||||
local dap = require("dap")
|
||||
|
||||
dap.adapters.bashdb = {
|
||||
type = "executable",
|
||||
command = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/bash-debug-adapter",
|
||||
name = "bashdb",
|
||||
}
|
||||
|
||||
dap.configurations.sh = {
|
||||
{
|
||||
type = "bashdb",
|
||||
request = "launch",
|
||||
name = "Launch file",
|
||||
showDebugOutput = true,
|
||||
pathBashdb = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir/bashdb",
|
||||
pathBashdbLib = vim.fn.stdpath("data") .. "/mason/packages/bash-debug-adapter/extension/bashdb_dir",
|
||||
trace = true,
|
||||
file = "${file}",
|
||||
program = "${file}",
|
||||
cwd = "${workspaceFolder}",
|
||||
pathCat = "cat",
|
||||
pathBash = "/bin/bash",
|
||||
pathMkfifo = "mkfifo",
|
||||
pathPkill = "pkill",
|
||||
args = {},
|
||||
env = {},
|
||||
terminalKind = "integrated",
|
||||
},
|
||||
}
|
||||
end
|
|
@ -83,7 +83,7 @@ local plugins = {
|
|||
-- Read editorconfig settings
|
||||
"editorconfig/editorconfig-vim",
|
||||
|
||||
-- Package manager for LSP servers, DAP servers etc.
|
||||
-- Package manager for LSP servers, DAP adapters etc.
|
||||
{ "williamboman/mason.nvim", config = require("plugins.mason").setup },
|
||||
|
||||
-- Install LSP server executables with Mason
|
||||
|
@ -98,6 +98,8 @@ local plugins = {
|
|||
-- Additional LSP features for Java
|
||||
"mfussenegger/nvim-jdtls",
|
||||
|
||||
{ "mfussenegger/nvim-dap", config = require("plugins.dap") },
|
||||
|
||||
-- Display function signature
|
||||
"ray-x/lsp_signature.nvim",
|
||||
|
||||
|
|
Loading…
Reference in a new issue