stevearc / dressing.nvim

Neovim plugin to improve the default vim.ui interfaces
MIT License
1.83k stars 32 forks source link

preview_width from telescope giving error #77

Closed thalha-dev closed 1 year ago

thalha-dev commented 1 year ago

Describe the bug setting preview_width option in telescope config giving an error every time I initialize the popup select window.

System information

-- telescope config: preview_width option
telescope.setup({
    defaults = {
        --[[ layout_config = { width = 0.99, height = 0.99, preview_width = 0.6 }, ]] <----- THIS OPTION
        layout_config = { width = 0.99, height = 0.99 },

Screenshots image

stevearc commented 1 year ago

This is because preview_width is specific to one layout, not shared among all of them. You're only supposed to put shared options in the top level setup() config. See https://github.com/nvim-telescope/telescope.nvim/issues/1623 for more details.

thalha-dev commented 1 year ago

Thank you