Skip to content

feat(builtin.treesitter) send user message if no symbols found. #3416

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xieyonn
Copy link
Contributor

@xieyonn xieyonn commented Feb 15, 2025

Description

  • Remove redundant empty check in builtin.treesitter.
  • Send user a INFO message if found no symbols, just like how other builtin pickers works.

Type of change

Please delete options that are not relevant.

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

How Has This Been Tested?

  • Manual testing - open a empty file and open ":Telescope treesitter"
  • Manual testing - open example file a.lua and open ":Telescope treesitter"
    a.lua
var a = {}

Configuration:

  • Neovim version (nvim --version):
    NVIM v0.10.4
    Build type: Release
    LuaJIT 2.1.171348406
  • Operating system and version:
    Debian 12

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)

@juliancoffee
Copy link

Just wanted to make the same MR, yeah, that chunk of code has a kind of confusing behaviour.

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.

2 participants