rcarriga / nvim-dap-ui

A UI for nvim-dap
MIT License
2.68k stars 99 forks source link

Document an example of custom UI symbols in the readme #320

Open shmerl opened 10 months ago

shmerl commented 10 months ago

This can be useful for those who don't have the custom / patched font and want to use their current font's Unicode symbols for UI elements.

I managed to make it work with something like this:

local ui_config = {
  icons = { expanded = "🞃", collapsed = "🞂", current_frame = "→" },
  controls = {
    icons = {
      pause = "⏸",
      play = "⯈",
      step_into = "↴",
      step_over = "↷",
      step_out = "↑",
      step_back = "↶",
      run_last = "🗘",
      terminate = "🕱",
      disconnect = "⏻"
    }
  }
}

require("dapui").setup(ui_config)

It can be useful to document in the readme, so users won't need to dig through documentation to find how to configure it, since it looks like a common thing someone would want to do.

cristobaltapia commented 8 months ago

@shmerl thanks a lot for this!

shmerl commented 8 months ago

You're welcome!