VidocqH / lsp-lens.nvim

Neovim plugin for displaying references and difinition infos upon functions like JB's IDEA.
MIT License
252 stars 15 forks source link

Configurable text format #19

Open etrnal70 opened 1 year ago

etrnal70 commented 1 year ago

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

mcauley-penney commented 8 months ago

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