2 files changed,
20 insertions(+),
0 deletions(-)
Author:
Smirnov Oleksandr
ss2316544@gmail.com
Committed at:
2022-10-17 17:28:06 +0300
Parent:
b4840e6
M
lua/configs/dap/init.lua
@@ -1,5 +1,10 @@
+local dap = require "dap" + require("nvim-dap-virtual-text").setup {} require "configs.dap.ui" + +-- NOTE: go setuping in ftplugin/go.lua +require "configs.dap.langs.python"(dap) vim.fn.sign_define("DapBreakpoint", { text = "",
A
lua/configs/dap/langs/python.lua
@@ -0,0 +1,15 @@
+return function(dap) + dap.adapters.python = { + type = "executable", + command = "python", + args = { "-m", "debugpy.adapter" }, + } + + dap.configurations.python = { { + type = "python", + request = "launch", + name = "Launch file", + program = "${file}", + pythonPath = "python", + } } +end