diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 12:20:16 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 12:20:16 +0100 |
| commit | 7ccd48274bdd76b76fcffe9073de62289bcfcc22 (patch) | |
| tree | a79f9ba2191902c5832c85dde55c0d13a198f713 /lua/user/colorscheme.lua | |
| parent | 03427b87604b573f2fd4c2683de378e4806f86fc (diff) | |
| parent | e76f0ee92723ec238521383e4b4d3af0281a462b (diff) | |
Merge branch 'vgg' into 18-impatient18-impatient
Diffstat (limited to 'lua/user/colorscheme.lua')
| -rw-r--r-- | lua/user/colorscheme.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/user/colorscheme.lua b/lua/user/colorscheme.lua index b1e21f6..4ccd3ff 100644 --- a/lua/user/colorscheme.lua +++ b/lua/user/colorscheme.lua @@ -6,3 +6,10 @@ catch /^Vim\%((\a\+)\)\=:E185/ set background=dark endtry ]] +local colorscheme = "default" + +local status_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme) +if not status_ok then + vim.notify("colorscheme " .. colorscheme .. " not found!") + return +end |
