wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.74k stars 262 forks source link

Options for multiple plugins #256

Open AckslD opened 3 years ago

AckslD commented 3 years ago

Would it be possible to add functionality to set options to multiple plugins? I.e. something as

    use {
        {'SidOfc/mkdx', config = 'require("plugin_settings/mkdx")'},
        -- table of contents
        {'mzlogin/vim-markdown-toc'},
        -- preview
        {'iamcco/markdown-preview.nvim', run = vim.fn['mkdp#util#install'] },
        ft = {'md'},
    }

where the ft-option is set for all of them

muchosteechos commented 3 years ago

This is also discussed here #139.

AckslD commented 3 years ago

Thanks @muchosteechos! That seems slightly different though, but indeed related.