debug breakpoint in color

This commit is contained in:
SamPosh 2023-04-24 12:09:49 +05:30 committed by GitHub
parent 79b3c1d21b
commit 18e2a664fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,14 @@ return {
vim.keymap.set('n', '<leader>B', function() vim.keymap.set('n', '<leader>B', function()
dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ') dap.set_breakpoint(vim.fn.input 'Breakpoint condition: ')
end) end)
-- Debug breakpoint will be in color
vim.api.nvim_set_hl(0, "blue", { fg = "#3d59a1", bg = "#FFFF00" })
vim.api.nvim_set_hl(0, "green", { fg = "#9ece6a", bg = "#FFFF00" })
vim.api.nvim_set_hl(0, "yellow", { fg = "#FAFA33", bg = "#FFFa05" })
vim.api.nvim_set_hl(0, "black", { fg = "#000000", bg = "#FFFF00" })
vim.fn.sign_define('DapBreakpoint',{ text="", texthl='blue',linehl='black', numhl='yellow' })
vim.fn.sign_define('DapStopped',{ text="", texthl='green',linehl='black', numhl='yellow' })
-- Dap UI setup -- Dap UI setup
-- For more information, see |:help nvim-dap-ui| -- For more information, see |:help nvim-dap-ui|