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

@@ -5,10 +5,9 @@
---------------------------------------------------
-- this is specific for a machine
if vim.loop.os_gethostname() == 'slaptop' then
_G.ORG_BASE_FOLDER = '~/Documents/Eigene (Briefe etc.)/org'
else
_G.ORG_BASE_FOLDER = '~/OneDrive/Desktop/orgfiles'
local ORG_BASE_FOLDER = '~/Documents/Eigene (Briefe etc.)/org'
if vim.loop.os_gethostname() != 'slaptop' then
ORG_BASE_FOLDER = '~/OneDrive/Desktop/orgfiles'
end
sl_opt = {
org_base_folder = ORG_BASE_FOLDER,