Auto generate vim docs

This commit is contained in:
hedyhli
2023-11-19 14:35:42 +00:00
committed by github-actions[bot]
parent 0cdd8dd915
commit 138c33f176

View File

@@ -224,7 +224,7 @@ Show defaults ~
-- Depth past which nodes will be folded by default -- Depth past which nodes will be folded by default
autofold_depth = nil, autofold_depth = nil,
-- When to auto unfold nodes -- When to auto unfold nodes
auto_unfold_nodes = { auto_unfold = {
-- Auto unfold currently hovered symbol -- Auto unfold currently hovered symbol
hovered = true, hovered = true,
-- Auto fold when the root level only has this many nodes. -- Auto fold when the root level only has this many nodes.
@@ -664,7 +664,7 @@ Unfold all others except currently hovered item.
>lua >lua
symbol_folding = { symbol_folding = {
autofold_depth = 1, autofold_depth = 1,
auto_unfold_nodes = { auto_unfold = {
hovered = true, hovered = true,
}, },
}, },
@@ -676,26 +676,26 @@ AUTO-UNFOLD WHEN THERES ONLY TWO (OR ANY NUMBER OF) ROOT NODES ~
>lua >lua
symbol_folding = { symbol_folding = {
auto_unfold_nodes = { auto_unfold = {
only = 2, only = 2,
}, },
}, },
< <
`auto_unfold_nodes.only = 2`: `auto_unfold.only = 2`:
https://github.com/hedyhli/outline.nvim/assets/50042066/035fadac-ecee-4427-9ee1-795dac215cea https://github.com/hedyhli/outline.nvim/assets/50042066/035fadac-ecee-4427-9ee1-795dac215cea
`auto_unfold_nodes.only = 1`: `auto_unfold.only = 1`:
https://github.com/hedyhli/outline.nvim/assets/50042066/3a123b7e-ccf6-4278-9a8c-41d2e1865d83 https://github.com/hedyhli/outline.nvim/assets/50042066/3a123b7e-ccf6-4278-9a8c-41d2e1865d83
In words "auto unfold nodes when there is only 2 nodes shown in the outline." In words "auto unfold nodes when there is only 2 nodes shown in the outline."
For `auto_unfold_nodes.only = true`: "auto unfold nodes when the root node is For `auto_unfold.only = true`: "auto unfold nodes when the root node is the
the only node left visible in the outline." only node left visible in the outline."
AUTO-JUMP ~ AUTO-JUMP ~