Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable text format #19

Open
etrnal70 opened this issue May 11, 2023 · 1 comment
Open

Configurable text format #19

etrnal70 opened this issue May 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@etrnal70
Copy link

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

@VidocqH VidocqH added the enhancement New feature or request label May 11, 2023
@mcauley-penney
Copy link

mcauley-penney commented Oct 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants