summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 15:05:18 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 15:05:18 -0500
commit6f208a42ce93dfac6f16cb16fdc7a4e6d37e4e7d (patch)
tree19c0c8eafdd31fe6e5f780ae13de52c0f3d44df1 /ted.cfg
parent6912e5c194ef28d3d567ccdf0ee77f30219d9e17 (diff)
configurable max buffer size + max view-only buffer size
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/ted.cfg b/ted.cfg
index 8a23968..027730e 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -36,6 +36,15 @@ identifier-trigger-characters = off
# enable LSP support (for autocompletion, etc.)
# you can also set `lsp = ""` but this is a quick way to disable LSP servers for all langauges
lsp-enabled = yes
+# maximum editable file size.
+# ted will set the buffer to view-only if a file larger than this is loaded.
+# NOTE: ted is not really meant for absolutely massive files.
+# it should handle anything up to 100,000 lines just fine (maybe small hiccups in some cases for >20,000)
+# files up to 1,000,000 lines should be just fine in view-only mode (although they might take a bit of time to load)
+max-file-size = 20000000
+# absolute maximum file size.
+# ted will produce an error if a file larger than this is loaded.
+max-file-size-view-only = 100000000
# search depth for files to generate tags for.
# if set to 0, tag generation/regeneration will do nothing