Can I load multiple plugins and then configure them afterwards? #500
-
I want to specify a specific set of plugins, then run a Lua function when they have all been loaded. I hoped this would work: use {
"rakr/vim-one", -- One theme (dark and light)
"tomasr/molokai", -- Molokai
"arcticicestudio/nord-vim", -- Nord
"cocopon/iceberg.vim", -- Iceberg
"morhetz/gruvbox", -- Gruvbox
"ayu-theme/ayu-vim", -- Ayu
"folke/tokyonight.nvim", -- TokyoNight
config = function()
vim.exec "colorscheme gruvbox"
end
} This installs all the color schemes, but the config function never runs. I don't want to just place |
Beta Was this translation helpful? Give feedback.
Answered by
wbthomason
Jul 24, 2021
Replies: 1 comment 3 replies
-
The typical way you'd do this is to change your spec to use {
"rakr/vim-one", -- One theme (dark and light)
"tomasr/molokai", -- Molokai
"arcticicestudio/nord-vim", -- Nord
"cocopon/iceberg.vim", -- Iceberg
{"morhetz/gruvbox", -- Gruvbox
config = function()
vim.exec "colorscheme gruvbox"
end},
"ayu-theme/ayu-vim", -- Ayu
"folke/tokyonight.nvim", -- TokyoNight
} because |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Hubro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The typical way you'd do this is to change your spec to
because
config
keys are associated with single plugins.