diff --git a/init.lua b/init.lua index 5f1127e..53da3a6 100644 --- a/init.lua +++ b/init.lua @@ -14,19 +14,3 @@ end vim.opt.rtp:prepend(lazypath) 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() diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 1b150e4..09a5782 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,5 +1,27 @@ -- All plugins have lazy = true by default, to load a plugin on startup just lazy=false 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-treesitter/nvim-treesitter"] = { @@ -120,7 +142,7 @@ local plugins = { ['vimwiki/vimwiki'] = { event = "VeryLazy", - init = function () + init = function() vim.g.vimwiki_list = { { path = '~/dox/notes', @@ -143,8 +165,8 @@ local plugins = { ["mbbill/undotree"] = { cmd = "UndotreeToggle", - init = function () - require("core.utils").load_mappings "undotree" + init = function() + require("core.utils").load_mappings "undotree" end, }, @@ -198,8 +220,6 @@ local plugins = { require("core.utils").load_mappings "whichkey" end, }, - - ["rose-pine/neovim"] = {}, } plugins = require("core.utils").format_plugins(plugins)