Unified handling of local / global variables
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user