telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

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

Open xieyonn opened this issue 9 months ago • 1 comments
trafficstars

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?

  • [x] Manual testing - open a empty file and open ":Telescope treesitter"
  • [x] 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:

  • [x] My code follows the style guidelines of this project (stylua)
  • [x] 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)

xieyonn avatar Feb 15 '25 07:02 xieyonn

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

juliancoffee avatar Apr 17 '25 16:04 juliancoffee

superseded by #3566

clason avatar Nov 07 '25 10:11 clason