From bc33fcc71faaa7784ff018f1bd2dd65ca68287d0 Mon Sep 17 00:00:00 2001
From: Cody Hiar <cody@hiar.ca>
Date: Thu, 23 Dec 2021 16:06:55 -0700
Subject: move colorscheme inside packer module

---
 init.lua | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/init.lua b/init.lua
index 20e03d3..f300a96 100644
--- a/init.lua
+++ b/init.lua
@@ -71,11 +71,6 @@ for i, highlight in ipairs(highlights) do
     vim.cmd('au VimEnter * hi ' .. highlight)
 end
 
--- Set the colorscheme
-vim.cmd [[
-colorscheme nord
-]]
-
 -- Along with the highlight definition for ColorColumn above, these options
 -- will set colored marks at certain line lengths
 vim.cmd [[
@@ -156,7 +151,14 @@ return require('packer').startup(function()
             vim.api.nvim_set_keymap('n', '<leader>ps', '<cmd>source ~/.config/nvim/init.lua<cr><cmd>PackerSync<cr>', { noremap = true })
         end
     }
-    use 'arcticicestudio/nord-vim'
+    use {
+        'arcticicestudio/nord-vim',
+        config = function()
+            vim.cmd [[
+            colorscheme nord
+            ]]
+        end
+    }
     use 'p00f/nvim-ts-rainbow'
     use {
         'nvim-treesitter/nvim-treesitter',
-- 
cgit v1.2.3