From 4ec576b6d600711160f7e3d10bbe60308c5b232c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 30 Jul 2025 13:47:28 +0200 Subject: make navigation window configurable and add key bindings --- lspc.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index f34ba4d..b1b5e98 100644 --- a/lspc.lua +++ b/lspc.lua @@ -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', -- cgit v1.2.3