plugins.dap-virtual-text.settings

Options provided to the require('nvim-dap-virtual-text').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  callback = {
    __raw = ''
      function()
        print('nixvim')
      end
    '';
  };
  foo_bar = 42;
  hostname = "localhost:8080";
}

Declared by:

plugins.dap-virtual-text.settings.enabled_commands

Create commands DapVirtualTextEnable, DapVirtualTextDisable, DapVirtualTextToggle.

(DapVirtualTextForceRefresh for refreshing when debug adapter did not notify its termination).

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dap-virtual-text.settings.all_frames

Show virtual text for all stack frames not only current.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.all_references

Show virtual text on all references of the variable (not only definitions).

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.clear_on_continue

Clear virtual text on continue (might cause flickering when stepping).

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.commented

Prefix virtual text with comment string.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.display_callback

A callback that determines how a variable is displayed or whether it should be omitted.

Type: null or lua function string

Default: null

Plugin default:

''
  function(variable, buf, stackframe, node, options)
    if options.virt_text_pos == 'inline' then
      return ' = ' .. variable.value
    else
      return variable.name .. ' = ' .. variable.value
    end
  end,
''

Declared by:

plugins.dap-virtual-text.settings.highlight_changed_variables

Highlight changed values with NvimDapVirtualTextChanged, else always NvimDapVirtualText.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dap-virtual-text.settings.highlight_new_as_changed

Highlight new variables in the same way as changed variables (if highlight_changed_variables).

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.only_first_definition

Only show virtual text at first definition (if there are multiple).

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dap-virtual-text.settings.show_stop_reason

Show stop reason when stopped for exceptions.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dap-virtual-text.settings.virt_lines

Show virtual lines instead of virtual text (will flicker!).

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.dap-virtual-text.settings.virt_text_pos

Position of virtual text, see :h nvim_buf_set_extmark(). Default tries to inline the virtual text. Use ‘eol’ to set to end of line.

Type: null or string or raw lua code

Default: null

Plugin default: "vim.fn.has 'nvim-0.10' == 1 and 'inline' or 'eol'"

Declared by:

plugins.dap-virtual-text.settings.virt_text_win_col

Position the virtual text at a fixed window column (starting from the first text column). See :h nvim_buf_set_extmark().

Type: null or signed integer

Default: null

Declared by: