diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-30 13:47:28 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-01-30 18:01:24 +0100 |
| commit | 4ec576b6d600711160f7e3d10bbe60308c5b232c (patch) | |
| tree | 07cc234cd2b15a898d5004f03d60e6d49ad84036 /lspc.lua | |
| parent | c12e2a1fc0ff5a4172552196627d8b1d221b66fe (diff) | |
| download | vis-lspc-4ec576b6d600711160f7e3d10bbe60308c5b232c.tar.gz vis-lspc-4ec576b6d600711160f7e3d10bbe60308c5b232c.zip | |
make navigation window configurable and add key bindings
Diffstat (limited to 'lspc.lua')
| -rw-r--r-- | lspc.lua | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -57,6 +57,23 @@ local lspc = { -- Should a file's directory be used as workspace root if no explicit root was found. fallback_dirname_as_root = false, + -- Format string how the symbols are presented in the navigation window. + -- The following arguments are passed to the string.format function: + -- indentation, symbol kind, name, line, column + navwin_symbol_format = '%s[%.1s] %s\n', -- short version + -- navwin_symbol_format = '%s[%s] %s %d:%d\n', -- verbose version + + -- Automaticaly scroll the code window to the symbol selected in the navigation window. + navwin_auto_scroll = true, + + -- The layout where the navigation window will be placed. + -- The following layout identifiers are supported: + -- 'vr' -- DEFAULT: vertical right + -- 'vl' -- vertical left + -- 'ht' -- horizontal top + -- 'hb' -- horizontak bottom + navwin_layout = 'vr', + -- events events = { LS_INITIALIZED = 'LspcEvent::LS_INITIALIZED', |
