vim: prevent errors if colorscheme is not yet installed
This commit is contained in:
parent
1bb221ea3e
commit
f5f0a0cb4b
2 changed files with 5 additions and 2 deletions
5
config/nvim/after/plugin/solarized.lua
Normal file
5
config/nvim/after/plugin/solarized.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
local ok, solarized = pcall(require, 'solarized')
|
||||
if ok and solarized then
|
||||
vim.cmd [[colorscheme solarized]]
|
||||
end
|
||||
|
|
@ -20,5 +20,3 @@ require 'fs.plugins'
|
|||
require 'fs.keymaps'
|
||||
require 'fs.autocmds'
|
||||
|
||||
vim.cmd 'colorscheme solarized'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue