refactor(nvim): use vim.cmd
for calling colorscheme
This commit is contained in:
parent
f6b31cd668
commit
739c2061bf
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user