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(builtin.commands): no preview for multiline description commands #2244

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

antonk52
Copy link
Contributor

Description

Currently if you have at least one command with multiline description the preview for telescope.builtin.commands() is broken, ie display an empty looking floating picker.

Screenshot 2022-11-25 at 01 19 22

Fixes # (issue)

Type of change

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

How Has This Been Tested?

-- init.lua
vim.api.nvim_create_user_command('Kek', function() end, {
        desc=[[
        foo
        bar
        baz
        ]]
})
require('telescope.builtin').commands()

With this change the commands preview is displayed as expected

Configuration:

  • Neovim version (nvim --version): 0.8.1
  • Operating system and version: Macos

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)

@antonk52
Copy link
Contributor Author

Fixed stylua quotes issue

@Conni2461
Copy link
Member

Thanks :)

@Conni2461 Conni2461 merged commit 22e13f6 into nvim-telescope:master Dec 2, 2022
Conni2461 pushed a commit that referenced this pull request Jan 6, 2023
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