diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:36:47 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:36:47 +0100 |
| commit | 2e04047bc61be798177a9fffc21d1ed025133ac1 (patch) | |
| tree | a5e426674fab3e32cb6d0eed2146872d62576754 /lua/user/colorscheme.lua | |
| parent | 2683495c3df5ee7d3682897e0d47b0facb3cedc9 (diff) | |
| parent | 97d9d5ae1d507aa24ea997b36e937c809d25ca0e (diff) | |
Merge branch 'vgg' into 05-completion05-completion
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 |
