Unified handling of local / global variables

This commit is contained in:
Lüdecke Sascha
2026-08-07 09:13:07 +02:00
parent d8d0c45bc3
commit 83b45009e3
5 changed files with 11 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
-- define your colorscheme here
local colorscheme = 'lunaperche-sl'
local COLORSCHEME = 'lunaperche-sl'
local is_ok, _ = pcall(vim.cmd, "colorscheme " .. colorscheme)
local is_ok, _ = pcall(vim.cmd, "colorscheme " .. COLORSCHEME)
if not is_ok then
vim.notify('colorscheme ' .. colorscheme .. ' not found!')
vim.notify('colorscheme ' .. COLORSCHEME .. ' not found!')
return
end