Adding python
This commit is contained in:
parent
f8d2160bbf
commit
a16fcac463
3 changed files with 177 additions and 0 deletions
18
lua/custom/plugins/nvim-dap-virtual-text.lua
Normal file
18
lua/custom/plugins/nvim-dap-virtual-text.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- Inline Debug Text
|
||||
return {
|
||||
-- https://github.com/theHamsta/nvim-dap-virtual-text
|
||||
'theHamsta/nvim-dap-virtual-text',
|
||||
lazy = true,
|
||||
opts = {
|
||||
-- Display debug text as a comment
|
||||
commented = true,
|
||||
-- Customize virtual text
|
||||
display_callback = function(variable, buf, stackframe, node, options)
|
||||
if options.virt_text_pos == 'inline' then
|
||||
return ' = ' .. variable.value
|
||||
else
|
||||
return variable.name .. ' = ' .. variable.value
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue