diff options
author | louie <louie@example.com> | 2022-06-22 20:48:13 -0700 |
---|---|---|
committer | louie <louie@example.com> | 2022-06-22 20:48:13 -0700 |
commit | c18307846723b1907ae4ca8b4e24112d594e358a (patch) | |
tree | 39607c24ebbd49143c9936bdaad69c9144c2253a | |
parent | 95bce4610af5ccc7cee4d68633ce6b7af5fe342b (diff) |
Added colorscheme file
-rw-r--r-- | init.lua | 1 | ||||
-rw-r--r-- | lua/user/colorscheme.lua | 7 | ||||
-rw-r--r-- | lua/user/options.lua | 5 | ||||
-rw-r--r-- | lua/user/plugins.lua | 3 |
4 files changed, 12 insertions, 4 deletions
@@ -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) |