Auto generate vim docs

This commit is contained in:
hedyhli
2023-11-11 06:19:36 +00:00
committed by github-actions[bot]
parent 79b2c8c2db
commit 9946da8de4

View File

@@ -1,4 +1,4 @@
*symbols-outline.txt* For NVIM v0.7.0 Last change: 2023 November 08 *symbols-outline.txt* For NVIM v0.7.0 Last change: 2023 November 11
============================================================================== ==============================================================================
Table of Contents *symbols-outline-table-of-contents* Table of Contents *symbols-outline-table-of-contents*
@@ -132,7 +132,18 @@ Default values are shown:
-- Vim options for the outline window -- Vim options for the outline window
show_numbers = false, show_numbers = false,
show_relative_numbers = false, show_relative_numbers = false,
show_cursorline = true, -- Only in this fork
-- Only in this fork (this and the one below)
show_cursorline = true,
-- Enable this when you enabled cursorline so your cursor color can
-- blend with the cursorline, in effect, as if your cursor is hidden
-- in the outline window.
-- This is useful because with cursorline, there isn't really a need
-- to know the vertical column position of the cursor and it may even
-- be distracting, rendering lineno/guides/icons unreadable.
-- This makes your line of cursor look the same as if the cursor wasn't
-- focused on the outline window.
hide_cursor = false,
-- Whether to wrap long lines, or let them flow off the window -- Whether to wrap long lines, or let them flow off the window
wrap = false, wrap = false,
@@ -144,7 +155,9 @@ Default values are shown:
-- Only in this fork: -- Only in this fork:
-- Winhighlight option for outline window. -- Winhighlight option for outline window.
-- See :help 'winhl' -- See :help 'winhl'
-- To change background color to "CustomHl" for example, set to "Normal:CustomHl". -- To change background color to "CustomHl" for example, append "Normal:CustomHl".
-- Note that if you're adding highlight changes, you should append to this
-- default value, otherwise details/lineno will not have highlights.
winhl = "SymbolsOutlineDetails:Comment,SymbolsOutlineLineno:LineNr", winhl = "SymbolsOutlineDetails:Comment,SymbolsOutlineLineno:LineNr",
}, },
@@ -219,7 +232,9 @@ Default values are shown:
-- Jump to symbol under cursor but keep focus on outline window. -- Jump to symbol under cursor but keep focus on outline window.
-- Renamed in this fork! -- Renamed in this fork!
peek_location = "o", peek_location = "o",
-- Only in this fork: -- Only in this fork (next 2):
-- Visit location in code and close outline immediately
goto_and_close = "<S-Cr>"
-- Change cursor position of outline window to the current location in code. -- Change cursor position of outline window to the current location in code.
-- "Opposite" of goto/peek_location. -- "Opposite" of goto/peek_location.
restore_location = "<C-g>", restore_location = "<C-g>",
@@ -338,26 +353,27 @@ DEFAULT KEYMAPS *symbols-outline-default-keymaps*
These mappings are active for the outline window. These mappings are active for the outline window.
Key Action Key Action
------------ ---------------------------------------------------- ------------- ----------------------------------------------------
Escape Close outline Esc / q Close outline
? Show help message ? Show help
Enter Go to symbol location in code Enter Go to symbol location in code
o Go to symbol location in code without losing focus o Go to symbol location in code without losing focus
Ctrl+k Go up and goto location Shift+Enter Go to symbol location in code and close outline
Ctrl+j Go down and goto location Ctrl+k Go up and goto location
Ctrl+g Go to code location in outline window Ctrl+j Go down and goto location
Ctrl+Space Hover current symbol Ctrl+g Update outline window to focus on code location
K Toggles the current symbol preview Ctrl+Space Hover current symbol (provider action)
r Rename symbol K Toggles the current symbol preview
a Code actions r Rename symbol
h Fold symbol or parent symbol a Code actions
Tab Toggle fold under cursor h Fold symbol or parent symbol
Shift+Tab Toggle all folds Tab Toggle fold under cursor
l Unfold symbol Shift+Tab Toggle all folds
W Fold all symbols l Unfold symbol
E Unfold all symbols W Fold all symbols
R Reset all folding E Unfold all symbols
R Reset all folding
HIGHLIGHTS *symbols-outline-highlights* HIGHLIGHTS *symbols-outline-highlights*
@@ -372,7 +388,7 @@ Default:
}, },
< <
Possible highlight groups to customize: Possible highlight groups provided by symbols-outline to customize:
------------------------------------------------------------------------- -------------------------------------------------------------------------
Highlight Purpose Highlight Purpose
@@ -385,6 +401,9 @@ Possible highlight groups to customize:
SymbolsOutlineLineno Highlight of the lineno column SymbolsOutlineLineno Highlight of the lineno column
------------------------------------------------------------------------- -------------------------------------------------------------------------
You can customize any other highlight groups using `winhl` too, this option is
passed directly to the `winhl` vim option unprocessed.
PREVIEW WINDOW ~ PREVIEW WINDOW ~
@@ -519,6 +538,28 @@ it using `outline_window.winhl`: please see |symbols-outline-highlights|.
- **Single cursorline**
>lua
outline_window = {
show_cursorline = true,
hide_cursor = true,
}
<
This will be how the outline window looks like when focused:
Note that in the screenshot, `outline_items.show_symbol_lineno` is also
enabled.
Some may find this unhelpful, but one may argue that elements in each row of
the outline becomes more readable this way, hence this is an option.
This feature is newly added in this fork, and is currently experimental (may be
unstable).
============================================================================== ==============================================================================
1. Links *symbols-outline-links* 1. Links *symbols-outline-links*