Skip to content

Commit d4a280d

Browse files
xyven1theHamsta
authored andcommitted
feat: add is_enabled function
Added the is_enabled function to the API so that it is possible for external users to know the current state of the plugin.
1 parent 0f0b9b1 commit d4a280d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/nvim-dap-virtual-text.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ function M.refresh(session)
115115
end
116116
end
117117

118+
function M.is_enabled()
119+
return options.enabled
120+
end
121+
118122
function M.enable()
119123
options.enabled = true
120124
M.refresh()

0 commit comments

Comments
 (0)