From 0054ddc019abd0182001fd3a9a9c50f937b7e5c0 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Tue, 14 Dec 2021 17:00:38 -0500 Subject: [PATCH] add colorscheme --- init.lua | 3 +-- lua/user/colorscheme.lua | 8 ++++++++ lua/user/plugins.lua | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 lua/user/colorscheme.lua diff --git a/init.lua b/init.lua index e1962c2..be25513 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,4 @@ require "user.options" require "user.keymaps" require "user.plugins" - - +require "user.colorscheme" diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua new file mode 100644 index 0000000..b1e21f6 --- /dev/null +++ b/lua/user/colorscheme.lua @@ -0,0 +1,8 @@ +vim.cmd [[ +try + colorscheme darkplus +catch /^Vim\%((\a\+)\)\=:E185/ + colorscheme default + set background=dark +endtry +]] diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 3d4499f..505d14a 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -45,6 +45,10 @@ return packer.startup(function(use) use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim use "nvim-lua/plenary.nvim" -- Useful lua functions used ny lots of plugins + -- Colorschemes + -- use "lunarvim/colorschemes" -- A bunch of colorschemes you can try out + use "lunarvim/darkplus.nvim" -- A bunch of colorschemes you can try out + -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins if PACKER_BOOTSTRAP then