refactor: Reorganize modules

Primarily:
- Utils
- Sidebar (removed the need of writer.lua)
- Resolve keymaps shortcut in config eraly
- Put highlight functions into highlight.lua
- Put functions that do stuff on outline window into view.lua
This commit is contained in:
hedy
2023-11-26 13:17:18 +08:00
parent b83e84a15f
commit 9f69f12161
12 changed files with 321 additions and 321 deletions

View File

@@ -326,6 +326,12 @@ function M.resolve_config()
if type(au.only) ~= 'number' then
au.only = (au.only and 1) or 0
end
----- KEYMAPS -----
for action, keys in pairs(M.o.keymaps) do
if type(keys) == 'string' then
M.o.keymaps[action] = { keys }
end
end
end
---Ensure l is either table, false, or nil. If not, print warning using given