rose-pine: change priority in lazy.nvim

This commit is contained in:
krolyxon 2023-01-23 22:59:00 +05:30
parent 1eee2a9393
commit 00fe3fcfe4
2 changed files with 25 additions and 21 deletions

View File

@ -14,19 +14,3 @@ end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require "plugins" require "plugins"
-- Set colorscheme
require('rose-pine').setup({
disable_background = true
})
function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
ColorMyPencils()

View File

@ -1,5 +1,27 @@
-- All plugins have lazy = true by default, to load a plugin on startup just lazy=false -- All plugins have lazy = true by default, to load a plugin on startup just lazy=false
local plugins = { local plugins = {
["rose-pine/neovim"] = {
lazy = false,
priority = 1000,
config = function()
-- Set colorscheme
require('rose-pine').setup({
disable_background = true
})
function ColorMyPencils(color)
color = color or "rose-pine"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
ColorMyPencils()
end
},
['nvim-lua/plenary.nvim'] = {}, ['nvim-lua/plenary.nvim'] = {},
["nvim-treesitter/nvim-treesitter"] = { ["nvim-treesitter/nvim-treesitter"] = {
@ -120,7 +142,7 @@ local plugins = {
['vimwiki/vimwiki'] = { ['vimwiki/vimwiki'] = {
event = "VeryLazy", event = "VeryLazy",
init = function () init = function()
vim.g.vimwiki_list = { vim.g.vimwiki_list = {
{ {
path = '~/dox/notes', path = '~/dox/notes',
@ -143,8 +165,8 @@ local plugins = {
["mbbill/undotree"] = { ["mbbill/undotree"] = {
cmd = "UndotreeToggle", cmd = "UndotreeToggle",
init = function () init = function()
require("core.utils").load_mappings "undotree" require("core.utils").load_mappings "undotree"
end, end,
}, },
@ -198,8 +220,6 @@ local plugins = {
require("core.utils").load_mappings "whichkey" require("core.utils").load_mappings "whichkey"
end, end,
}, },
["rose-pine/neovim"] = {},
} }
plugins = require("core.utils").format_plugins(plugins) plugins = require("core.utils").format_plugins(plugins)