forked from iGio90/filemanager-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.lua
More file actions
28 lines (22 loc) · 698 Bytes
/
settings.lua
File metadata and controls
28 lines (22 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
local config = import('micro/config')
local Settings = {}
Settings.Const = {
pluginName = "filetab",
minWidth = 30,
previousDirectoryLine = 2,
defaultLineOnOpen = 2,
headerSize = 3
}
-- If the `micro/settings.json` file contains any of these options,
-- the values in that file will override the ones specified here.
function Settings.load_default()
Settings.set_option("scrollbar", false)
Settings.set_option("openOnStart", true)
end
function Settings.get_option(optionKey)
return config.GetGlobalOption(Settings.Const.pluginName .. "." .. optionKey)
end
function Settings.set_option(key, value)
config.RegisterCommonOption(Settings.Const.pluginName, key, value)
end
return Settings