mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-06-24 17:58:55 +02:00
feat(plugin): added Plugin.priority
for start plugins
This commit is contained in:
parent
eec0485d45
commit
edf8310288
4 changed files with 50 additions and 7 deletions
|
@ -1,6 +1,14 @@
|
|||
return {
|
||||
-- the colorscheme should be available when starting Neovim
|
||||
"folke/tokyonight.nvim",
|
||||
{
|
||||
"folke/tokyonight.nvim",
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
-- load the colorscheme here
|
||||
vim.cmd([[colorscheme tokyonight]])
|
||||
end,
|
||||
},
|
||||
|
||||
-- I have a separate config.mappings file where I require which-key.
|
||||
-- With lazy the plugin will be automatically loaded when it is required somewhere
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue