debugger for python
This commit is contained in:
parent
f89dbf8e7f
commit
13b8601d80
|
@ -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 {
|
return {
|
||||||
'mfussenegger/nvim-dap-python',
|
'mfussenegger/nvim-dap-python',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|
|
@ -37,6 +37,14 @@ return {
|
||||||
layouts = {
|
layouts = {
|
||||||
{
|
{
|
||||||
elements = {
|
elements = {
|
||||||
|
{
|
||||||
|
id = "stacks",
|
||||||
|
size = 0.1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id = "breakpoints",
|
||||||
|
size = 0.1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id = "console",
|
id = "console",
|
||||||
size = 0.5
|
size = 0.5
|
||||||
|
@ -47,26 +55,18 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
elements = {
|
elements = {
|
||||||
{
|
|
||||||
id = "repl",
|
|
||||||
size = 0.2
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id = "scopes",
|
id = "scopes",
|
||||||
size = 0.2
|
size = 0.2
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id = "breakpoints",
|
|
||||||
size = 0.2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id = "stacks",
|
|
||||||
size = 0.2
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id = "watches",
|
id = "watches",
|
||||||
size = 0.2
|
size = 0.2
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id = "repl",
|
||||||
|
size = 0.2
|
||||||
|
},
|
||||||
},
|
},
|
||||||
position = "right",
|
position = "right",
|
||||||
size = 40
|
size = 40
|
||||||
|
|
Loading…
Reference in New Issue