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 = {