aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-12-23 16:06:55 -0700
committerCody Hiar <cody@hiar.ca>2021-12-23 16:06:55 -0700
commitbc33fcc71faaa7784ff018f1bd2dd65ca68287d0 (patch)
treee081dd3f5089ff6a5704d0856afdfa3690fc27c4
parent98b5988b7edf0db90736fb1fa0c89dd6bf9d75a8 (diff)
move colorscheme inside packer module
-rw-r--r--init.lua14
1 files 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',