refactor(nvim): use vim.cmd for calling colorscheme

This commit is contained in:
Price Hiller 2022-09-27 19:17:04 -05:00
parent f6b31cd668
commit 739c2061bf

View File

@ -7,7 +7,7 @@ M.setup = function()
vim.g.tokyonight_transparent_sidebar = true
local colorscheme_name = "kanagawa"
local loaded, _ = pcall(vim.cmd, "colorscheme " .. colorscheme_name)
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, {