From dd1aca9ad2f19c6116f4fc8c8a7651b2b7742cbf Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 30 Jul 2025 19:36:09 +0200 Subject: improve navigation windows Remove broken autoscrolling. Add commands to control a code/navigation window pair. Support multiple navigation window pairs. Improve default navigation window keybindings. --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a5ff2d5..81440cb 100644 --- a/README.md +++ b/README.md @@ -78,12 +78,12 @@ Alternatively, a plugin manager like [vis-plug](https://github.com/erf/vis-plug) - get completions < o> - open the symbol navigation window -#### Non-Auto-Jump Navigation Window +#### Navigation Window Normal mode: - < s> - scroll to the selected symbol - < j> - jump to the selected symbol (switch to the code window) - < x> - close the navigaion window +

- scroll to the selected symbol + - jump to the selected symbol (switch to the code window) + - close the navigaion window ### Available commands @@ -114,7 +114,12 @@ Alternatively, a plugin manager like [vis-plug](https://github.com/erf/vis-plug) lspc-show-diagnostics - show the available diagnostics of the current line lspc-next-diagnostic - jump to the next available diagnostic lspc-prev-diagnostic - jump to the previous available diagnostic + + # navigation windows lspc-navigate-symbols - navigate a file by its symbols in a seperate window + lspc-navwin-scroll - scroll to the selected symbol + lspc-navwin-jump - jump to the selected symbol + lspc-navwin-close - close the navigation window ### Available configuration options @@ -141,7 +146,6 @@ Available options are: * `universal_root_globs = {}` - Globs to consider as workspace root for any language server (e.g. `*.git` or `*.hg`). * `fallback_dirname_as_root = false` - If set to true a file's directory is used as workspace root if no explicit root was found. * `navwin_symbols_format = '%s[%.1s] %s\n'` - The format string used to display a symbol in the symbol navigation window. -* `navwin_auto_scroll = true` - If set to true the code window will scroll to the currently selected symbol in the navigation window without user interaction. * `navwin_layout = 'vr'` - Layout where the navigation window will be placed (`v[r|l]|h[t|b]`: vertical right or left; horizontal top or bottom). #### Configure your own Language Server -- cgit v1.2.3