lsp-lens.nvim icon indicating copy to clipboard operation
lsp-lens.nvim copied to clipboard

Configurable text format

Open etrnal70 opened this issue 1 year ago • 1 comments

Would be nice to have, since i'm planning to mimic the IntelliJ one as close as possible

etrnal70 avatar May 11 '23 00:05 etrnal70

This is mostly possible, see the image below. The configuration takes a table called sections where you can define how the text for each type of document symbol is output. It also takes a separator string. For lazy.nvim, you can do:

  {
    "VidocqH/lsp-lens.nvim",
    opts = {
      separator = "  ",
      sections = {
        definition = function(count)
          return count .. " definition"
        end,
        references = function(count)
          return count .. " refence"
        end,
        implements = function(count)
          return count .. " implementation"
        end,
      },
    }
  }

image

mcauley-penney avatar Oct 21 '23 23:10 mcauley-penney