update nvim
This commit is contained in:
31
plugins/mason-nvim-dap.lua
Normal file
31
plugins/mason-nvim-dap.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
"jay-babu/mason-nvim-dap.nvim",
|
||||
config = function(self, opts)
|
||||
self.default_config(opts) -- run default AstroNvim mason-nvim-dap config function
|
||||
|
||||
-- do more configuration as needed
|
||||
local mason_nvim_dap = require "mason-nvim-dap"
|
||||
mason_nvim_dap.setup_handlers {
|
||||
python = function(source_name)
|
||||
local dap = require "dap"
|
||||
dap.adapters.python = {
|
||||
type = "executable",
|
||||
command = "/usr/bin/python3",
|
||||
args = {
|
||||
"-m",
|
||||
"debugpy.adapter",
|
||||
},
|
||||
}
|
||||
|
||||
dap.configurations.python = {
|
||||
{
|
||||
type = "python",
|
||||
request = "launch",
|
||||
name = "Launch file",
|
||||
program = "${file}", -- This configuration will launch the current file if used.
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
end,
|
||||
}
|
Reference in New Issue
Block a user