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

Make sorting keys configurable #190

Merged
merged 1 commit into from
Sep 4, 2022
Merged

Conversation

WhyNotHugo
Copy link
Contributor

@WhyNotHugo WhyNotHugo commented Jun 13, 2022

For example, to sort entries by line number, use:

require("trouble").setup({
  sort_keys = {
    "filename",
    "lnum",
    "col",
    "severity",
  }
})

The defaults remain the same.

Fixes: #65

For example, to sort entries by line number, use:

    require("trouble").setup({
      sort_keys = {
        "filename",
        "lnum",
        "col",
        "severity",
      }
    })

The defaults remain the same.

Fixes: #65
@WhyNotHugo
Copy link
Contributor Author

Any feedback on this?

@folke folke merged commit 68d3dc5 into folke:main Sep 4, 2022
@WhyNotHugo WhyNotHugo deleted the configurable-sorting branch September 5, 2022 08:21
@WhyNotHugo
Copy link
Contributor Author

Thanks!

@folke
Copy link
Owner

folke commented Sep 5, 2022

Thank you!

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

Successfully merging this pull request may close these issues.

Configurable diagnostics sorting
2 participants