debugger for python

This commit is contained in:
aliaksandrkotau 2023-12-24 19:12:11 +01:00
parent f89dbf8e7f
commit 13b8601d80
2 changed files with 32 additions and 12 deletions

View File

@ -1,3 +1,23 @@
-- vim.api.nvim_create_autocmd("ColorScheme", {
-- pattern = "*",
-- group = "UserDefLoadOnce",
-- desc = "prevent colorscheme clears self-defined DAP icon colors.",
-- callback = function()
-- vim.api.nvim_set_hl(0, 'DapBreakpoint', { ctermbg = 0, fg = '#993939' })
-- vim.api.nvim_set_hl(0, 'DapLogPoint', { ctermbg = 0, fg = '#61afef' })
-- vim.api.nvim_set_hl(0, 'DapStopped', { ctermbg = 0, fg = '#98c379' })
-- end
-- })
vim.fn.sign_define('DapBreakpoint', { text='🔴', texthl='DapBreakpoint' })
vim.fn.sign_define('DapBreakpointCondition', { text='🟨', texthl='DapBreakpoint' })
vim.fn.sign_define('DapBreakpointRejected', { text='🟥', texthl='DapBreakpoint' })
vim.fn.sign_define('DapLogPoint', { text='🪵', texthl='DapLogPoint' })
vim.cmd('highlight MyRedBackground ctermbg=black guibg=black')
vim.fn.sign_define('DapStopped', { text='▶️', texthl='', linehl='MyRedBackground', numhl='' })
return {
'mfussenegger/nvim-dap-python',
dependencies = {

View File

@ -37,6 +37,14 @@ return {
layouts = {
{
elements = {
{
id = "stacks",
size = 0.1
},
{
id = "breakpoints",
size = 0.1
},
{
id = "console",
size = 0.5
@ -47,26 +55,18 @@ return {
},
{
elements = {
{
id = "repl",
size = 0.2
},
{
id = "scopes",
size = 0.2
},
{
id = "breakpoints",
size = 0.2
},
{
id = "stacks",
size = 0.2
},
{
id = "watches",
size = 0.2
},
{
id = "repl",
size = 0.2
},
},
position = "right",
size = 40