Compare commits

...

2 Commits

Author SHA1 Message Date
christianchiarulli 68de5d4fab use lua way to handle color scheme errors
3 years ago
christianchiarulli 67f73b7044 add colorscheme
3 years ago

@ -1,5 +1,4 @@
require "user.options" require "user.options"
require "user.keymaps" require "user.keymaps"
require "user.plugins" require "user.plugins"
require "user.colorscheme"

@ -0,0 +1,7 @@
local colorscheme = "default"
local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
if not status_ok then
vim.notify("colorscheme " .. colorscheme .. " not found!")
return
end

@ -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/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 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"
-- Automatically set up your configuration after cloning packer.nvim -- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins -- Put this at the end after all plugins
if PACKER_BOOTSTRAP then if PACKER_BOOTSTRAP then

Loading…
Cancel
Save