fix: run colorscheme from within plugins instead of core
This commit is contained in:
parent
0c71e01ed7
commit
12cc5fc8e3
@ -1 +0,0 @@
|
|||||||
require('core.theme').setup()
|
|
@ -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
|
|
@ -57,9 +57,9 @@ lazy.setup({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rebelot/kanagawa.nvim",
|
"rebelot/kanagawa.nvim",
|
||||||
event = "VeryLazy",
|
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.kanagawa")
|
require("plugins.configs.kanagawa")
|
||||||
|
vim.cmd.colorscheme("kanagawa")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user