diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:57:23 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:57:23 +0100 |
| commit | ed7eee18e3833dba8ef02e3a669a582f527bcafd (patch) | |
| tree | e8749f1618d60a479d49f43acb52c66cd9a4e495 /lua/user/colorscheme.lua | |
| parent | 6fbc8c23123a6b44590a3fa6c656c2f5b98ae89e (diff) | |
| parent | deaf6a9824ff47756379c00f430e784f059b581c (diff) | |
Merge branch 'vgg' into 11-gitsigns11-gitsigns
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 |
