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

fix: use nil for the default diagnostics severity #2662

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

delphinus
Copy link
Member

Description

neovim/neovim#24736 has introduced a new syntax for severity format in vim.diagnostic.get().

Fix #2661

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration

  • :Telescope diagnostics at a file with diagnostic warnings.

Configuration:

  • Neovim version (nvim --version):
    • Neovim HEAD
      NVIM v0.10.0-dev-3455+g18062f70d-Homebrew
      Build type: Release
      LuaJIT 2.1.0-beta3
      
  • Operating system and version: macOS Ventura 13.4.1

Checklist:

  • My code follows the style guidelines of this project (stylua)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (lua annotations)

neovim/neovim#24736 has introduced a new syntax
for severity format in `vim.diagnostic.get()`.

Fix #2661
lua/telescope/builtin/__diagnostics.lua Outdated Show resolved Hide resolved
@jamestrew jamestrew dismissed Conni2461’s stale review September 3, 2023 22:21

requested changes applied. tested on both nightly and 0.9

@jamestrew jamestrew merged commit 6b79d7a into master Sep 3, 2023
13 checks passed
@jamestrew jamestrew deleted the fix/default-severity branch September 3, 2023 22:22
Conni2461 pushed a commit that referenced this pull request Sep 5, 2023
* fix: use nil for the default diagnostics severity

neovim/neovim#24736 has introduced a new syntax
for severity format in `vim.diagnostic.get()`.

Fix #2661

* fix: fallback for 0.9.1

* fix: detect changes only when minor version > 9

(cherry picked from commit 6b79d7a)
rameshsanth pushed a commit to rameshsanth/telescope.nvim that referenced this pull request Nov 17, 2023
* fix: use nil for the default diagnostics severity

neovim/neovim#24736 has introduced a new syntax
for severity format in `vim.diagnostic.get()`.

Fix nvim-telescope#2661

* fix: fallback for 0.9.1

* fix: detect changes only when minor version > 9
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.

Telescope diagnostics always returns "no diagnostics found" even when diagnostics exist
3 participants