virtual-text: inline variable values with sensible defaults
This commit is contained in:
2 files changed
+27
No files matched your search
@@ -0,0 +1,24 @@
|
||||
local config = require("tiny-debugger.config")
|
||||
|
||||
local M = {}
|
||||
|
||||
local initialized = false
|
||||
|
||||
function M.setup()
|
||||
if initialized then return end
|
||||
initialized = true
|
||||
require("nvim-dap-virtual-text").setup(config.opts.virtual_text)
|
||||
end
|
||||
|
||||
function M.enable()
|
||||
M.setup()
|
||||
require("nvim-dap-virtual-text").enable()
|
||||
end
|
||||
|
||||
function M.disable()
|
||||
if initialized then
|
||||
require("nvim-dap-virtual-text").disable()
|
||||
end
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user