Fix: Toggle modified notes (#188)

* Fix: Toggle discussion nodes correctly
* Feat: Show Help keymap in discussion tree winbar
This commit is contained in:
Jakub F. Bortlík
2024-02-24 19:06:16 +01:00
committed by GitHub
parent faf2a25dc4
commit f6a5238d4b
4 changed files with 43 additions and 10 deletions

View File

@@ -79,7 +79,8 @@ M.settings = {
discussions_content = "%#Comment#" .. discussions_content
notes_content = "%#Text#" .. notes_content
end
return " " .. discussions_content .. " %#Comment#| " .. notes_content
local help = "%#Comment#%=Help: " .. t.help_keymap:gsub(" ", "<space>") .. " "
return " " .. discussions_content .. " %#Comment#| " .. notes_content .. help
end,
},
merge = {
@@ -169,6 +170,16 @@ M.settings = {
},
}
-- These are the initial states of the discussion trees
M.discussion_tree = {
resolved_expanded = false,
unresolved_expanded = false,
}
M.unlinked_discussion_tree = {
resolved_expanded = false,
unresolved_expanded = false,
}
-- Merges user settings into the default settings, overriding them
M.merge_settings = function(args)
M.settings = u.merge(M.settings, args)