fix: run colorscheme from within plugins instead of core

This commit is contained in:
Price Hiller 2023-02-07 06:06:01 -06:00
parent 0c71e01ed7
commit 12cc5fc8e3
3 changed files with 1 additions and 22 deletions

View File

@ -1 +0,0 @@
require('core.theme').setup()

View File

@ -1,20 +0,0 @@
local M = {}
local util = require("utils.funcs")
M.setup = function()
vim.g.tokyonight_style = "night"
vim.g.tokyonight_transparent = true
vim.g.tokyonight_transparent_sidebar = true
local colorscheme_name = "kanagawa"
local loaded, _ = pcall(vim.cmd.colorscheme, colorscheme_name)
if not loaded then
vim.notify('Colorscheme "' .. colorscheme_name .. '" could not be loaded!', vim.lsp.log_levels.WARN, {
title = "Colorscheme",
})
end
-- vim.api.nvim_set_hl(0, "SpecialKey", { fg = "#61AFEF" })
end
return M

View File

@ -57,9 +57,9 @@ lazy.setup({
},
{
"rebelot/kanagawa.nvim",
event = "VeryLazy",
config = function()
require("plugins.configs.kanagawa")
vim.cmd.colorscheme("kanagawa")
end,
},