From c18307846723b1907ae4ca8b4e24112d594e358a Mon Sep 17 00:00:00 2001 From: louie Date: Wed, 22 Jun 2022 20:48:13 -0700 Subject: Added colorscheme file --- init.lua | 1 + lua/user/colorscheme.lua | 7 +++++++ lua/user/options.lua | 5 +---- lua/user/plugins.lua | 3 +++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 lua/user/colorscheme.lua diff --git a/init.lua b/init.lua index ad27a7f..be25513 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +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..94855bc --- /dev/null +++ b/lua/user/colorscheme.lua @@ -0,0 +1,7 @@ +local colorscheme = "slate" + +local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) +if not status_ok then + vim.notify("colorscheme " .. colorscheme .. " not found!") + return +end diff --git a/lua/user/options.lua b/lua/user/options.lua index 338d207..6538ab3 100644 --- a/lua/user/options.lua +++ b/lua/user/options.lua @@ -1,8 +1,5 @@ --- Syntax Highlighting Settings -vim.syntax = true --turn on syntax highlighting -vim.cmd("colorscheme slate") --set colorscheme to slate - -- Misc. Settings +vim.syntax = true --turn on syntax highlighting vim.opt.hlsearch = true --highlight search matches vim.opt.number = true --number rows vim.opt.shiftwidth = 4 --set shiftwidth diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index b491d35..d90587e 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -10,4 +10,7 @@ return packer.startup(function(use) use "wbthomason/packer.nvim" -- Have packer manage itself --use "nvim-lua/popup.nvim" -- An implementation of the Popup API from vim in Neovim --use "nvim-lua/plenary.nvim" -- Useful lua functions used by lots of plugins + + -- Colorschemes + --use "lunarvim/colorschemes" -- Additional colorschemes end) -- cgit