Integrate neovim config into home-manager, separate external configs under config/
This commit is contained in:
30
config/nvim/lua/eliaskohout-old/after/plugin/dap-python.lua
Executable file
30
config/nvim/lua/eliaskohout-old/after/plugin/dap-python.lua
Executable file
@@ -0,0 +1,30 @@
|
||||
local dap = require('dap')
|
||||
local dap_python = require('dap-python')
|
||||
|
||||
dap_python.setup('uv') -- or wherever your debugpy-enabled python is
|
||||
|
||||
dap.adapters.python = {
|
||||
type = 'server',
|
||||
host = '127.0.0.1',
|
||||
port = 5678,
|
||||
}
|
||||
|
||||
dap.configurations.python = {
|
||||
{
|
||||
type = 'python',
|
||||
request = 'attach',
|
||||
name = "Attach to remote",
|
||||
connect = {
|
||||
host = "127.0.0.1",
|
||||
port = 5678,
|
||||
},
|
||||
mode = "remote",
|
||||
pathMappings = {
|
||||
{
|
||||
localRoot = vim.fn.getcwd(),
|
||||
remoteRoot = "/home/mmc-user/fair-psgg"
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user