Skip to content

numbercolumn

Zeioth edited this page Mar 3, 2024 · 6 revisions

You can add this component to the statuscolumn section of heirline opts.

require("heirline-components.all").component.numbercolumn()

On the left side of the image you can see it displays a numeric indicator of every line on the statuscolumn area. screenshot_2024-02-24_01-05-22_687350617

Clicking a line number, will toggle a break point. screenshot_2024-03-03_21-48-30_377182841

Available providers

These are the available providers for this component and its options.

numbercolumn = { padding = { right = 1 } },
condition = condition.numbercolumn_enabled,
on_click = {
  name = "line_click",
  callback = function()
    pcall(function() require("dap").toggle_breakpoint() end)
  end,
},
Clone this wiki locally