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

Add option to customize length of symbols for make_entry.gen_from_treesitter #3105

Merged
merged 3 commits into from
May 23, 2024

Conversation

mjendruk
Copy link
Contributor

Description

This adds the same options which already exist for gen_from_lsp_symbols to control the allocated space for symbols in make_entry.gen_from_treesitter.

Added options:

  • symbol_width: controls the space for the symbol (defaults to 25)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

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

  • Simply provide symbol_width as an option and observe how the space for the symbol in the treesitter picker grows and shrinks.

Configuration:

  • Neovim version (nvim --version): 0.9.5
  • Operating system and version: Linux

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)

@mjendruk mjendruk changed the title Add options to customize length of symbols and line numbers for make_entry.gen_from_treesitter Add options to customize length of symbols for make_entry.gen_from_treesitter May 15, 2024
@mjendruk mjendruk changed the title Add options to customize length of symbols for make_entry.gen_from_treesitter Add option to customize length of symbols for make_entry.gen_from_treesitter May 15, 2024
@jamestrew jamestrew merged commit 05f4d6f into nvim-telescope:master May 23, 2024
9 checks passed
@jamestrew
Copy link
Contributor

closes #3041

thanks!

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.

None yet

2 participants