From 739c2061bfc0efbadf40f4712b7d27f96d75cbb0 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 27 Sep 2022 19:17:04 -0500 Subject: [PATCH] refactor(nvim): use `vim.cmd` for calling colorscheme --- dots/.nvim-environments/primary/config/lua/core/theme.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.nvim-environments/primary/config/lua/core/theme.lua b/dots/.nvim-environments/primary/config/lua/core/theme.lua index 81ccfd91..c51c38df 100755 --- a/dots/.nvim-environments/primary/config/lua/core/theme.lua +++ b/dots/.nvim-environments/primary/config/lua/core/theme.lua @@ -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, {