summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/ted.cfg b/ted.cfg
index 98f8c5e..ef6f862 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -39,6 +39,16 @@ identifier-trigger-characters = off
tags-max-depth = 2
# regenerate tags if an identifier is not found (with Ctrl+click)?
regenerate-tags-if-not-found = yes
+# this variable determines how ted finds the "root directory" of a project for
+# running build commands and because LSPs need to know
+# FOR EXAMPLE: If you have the file /a/b/c/d.txt open,
+# ted will check each of the directories /, /a, /a/b, /a/b/c
+# and set the root to whichever one has one of these files,
+# breaking ties by order of appearance in the list below.
+# So if /a/b/.git and /a/Makefile and /a/b/c/Cargo.toml exist,
+# ted will select /a/b as the root.
+# if no identifying files are found, the directory containing the current file is used.
+root-identifiers = .ted-root.out, Cargo.toml, make.bat, CMakeLists.txt, Makefile, go.mod, .git
# you can make your own custom background for ted using a shader.
# an example is provided here. you will have access to the following variables: