all repos

init.lua @ c5ca6d5e7af6cb180f9fbd22741cdff6f828fbe4

my nvim config
2 files changed, 20 insertions(+), 0 deletions(-)
feat(dap): add config for python
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