Adding python
This commit is contained in:
parent
f8d2160bbf
commit
a16fcac463
3 changed files with 177 additions and 0 deletions
115
lua/custom/plugins/nvim-dap-ui.lua
Normal file
115
lua/custom/plugins/nvim-dap-ui.lua
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
-- Debugging Support
|
||||
return {
|
||||
-- https://github.com/rcarriga/nvim-dap-ui
|
||||
'rcarriga/nvim-dap-ui',
|
||||
event = 'VeryLazy',
|
||||
dependencies = {
|
||||
-- https://github.com/mfussenegger/nvim-dap
|
||||
'mfussenegger/nvim-dap',
|
||||
-- https://github.com/theHamsta/nvim-dap-virtual-text
|
||||
'theHamsta/nvim-dap-virtual-text', -- inline variable text while debugging
|
||||
-- https://github.com/nvim-telescope/telescope-dap.nvim
|
||||
'nvim-telescope/telescope-dap.nvim', -- telescope integration with dap
|
||||
'nvim-neotest/nvim-nio',
|
||||
},
|
||||
opts = {
|
||||
controls = {
|
||||
element = 'repl',
|
||||
enabled = false,
|
||||
icons = {
|
||||
disconnect = '',
|
||||
pause = '',
|
||||
play = '',
|
||||
run_last = '',
|
||||
step_back = '',
|
||||
step_into = '',
|
||||
step_out = '',
|
||||
step_over = '',
|
||||
terminate = '',
|
||||
},
|
||||
},
|
||||
element_mappings = {},
|
||||
expand_lines = true,
|
||||
floating = {
|
||||
border = 'single',
|
||||
mappings = {
|
||||
close = { 'q', '<Esc>' },
|
||||
},
|
||||
},
|
||||
force_buffers = true,
|
||||
icons = {
|
||||
collapsed = '',
|
||||
current_frame = '',
|
||||
expanded = '',
|
||||
},
|
||||
layouts = {
|
||||
{
|
||||
elements = {
|
||||
{
|
||||
id = 'scopes',
|
||||
size = 0.50,
|
||||
},
|
||||
{
|
||||
id = 'stacks',
|
||||
size = 0.30,
|
||||
},
|
||||
{
|
||||
id = 'watches',
|
||||
size = 0.10,
|
||||
},
|
||||
{
|
||||
id = 'breakpoints',
|
||||
size = 0.10,
|
||||
},
|
||||
},
|
||||
size = 40,
|
||||
position = 'left', -- Can be "left" or "right"
|
||||
},
|
||||
{
|
||||
elements = {
|
||||
'repl',
|
||||
'console',
|
||||
},
|
||||
size = 10,
|
||||
position = 'bottom', -- Can be "bottom" or "top"
|
||||
},
|
||||
},
|
||||
mappings = {
|
||||
edit = 'e',
|
||||
expand = { '<CR>', '<2-LeftMouse>' },
|
||||
open = 'o',
|
||||
remove = 'd',
|
||||
repl = 'r',
|
||||
toggle = 't',
|
||||
},
|
||||
render = {
|
||||
indent = 1,
|
||||
max_value_lines = 100,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local dap = require 'dap'
|
||||
require('dapui').setup(opts)
|
||||
|
||||
dap.listeners.after.event_initialized['dapui_config'] = function()
|
||||
require('dapui').open()
|
||||
end
|
||||
|
||||
dap.listeners.before.event_terminated['dapui_config'] = function()
|
||||
-- Commented to prevent DAP UI from closing when unit tests finish
|
||||
-- require('dapui').close()
|
||||
end
|
||||
|
||||
dap.listeners.before.event_exited['dapui_config'] = function()
|
||||
-- Commented to prevent DAP UI from closing when unit tests finish
|
||||
-- require('dapui').close()
|
||||
end
|
||||
|
||||
-- Add dap configurations based on your language/adapter settings
|
||||
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation
|
||||
-- dap.configurations.xxxxxxxxxx = {
|
||||
-- {
|
||||
-- },
|
||||
-- }
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue