From 29afc301ea05bc907444b698c91b141c26167baa Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 11 Jan 2025 15:11:16 +0100 Subject: make universal root detection opt-in --- lspc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index 721199a..d988009 100644 --- a/lspc.lua +++ b/lspc.lua @@ -19,7 +19,7 @@ local lspc = { -- automatically start a language server when a new window is opened autostart = true, -- program used to let the user make choices - -- The available choices are pass to on stdin separated by '\n' + -- The available choices are passed to on stdin separated by '\n' menu_cmd = 'vis-menu -l 10', -- program used to ask the user for confirmation confirm_cmd = 'vis-menu', @@ -49,6 +49,12 @@ local lspc = { -- 'message': use vis:message; 'open': use a new split window allowing for syntax highlighting show_message = 'message', + -- Globs that are considered to be workspace roots (e.g. ".git" or ".hg") + universal_root_globs = {}, + + -- Should a file's directory be used as workspace root if no explicit root was found. + fallback_dirname_as_root = false, + -- events events = { LS_INITIALIZED = 'LspcEvent::LS_INITIALIZED', -- cgit v1.2.3