summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-11 23:15:10 -0500
committerpommicket <pommicket@gmail.com>2023-01-11 23:15:10 -0500
commit024fd444d673be63ac23fc83481a8fe624127cbf (patch)
tree7c83af676466bdb23b30a10e13d80601a006d2a1 /base.h
parentdc1e9a3566927fe71bd254f8486be9eb99650783 (diff)
LANG_TEXT, turn off phantom completions for text/cfg/md files
Diffstat (limited to 'base.h')
-rw-r--r--base.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base.h b/base.h
index 32229e0..a5e5299 100644
--- a/base.h
+++ b/base.h
@@ -183,7 +183,7 @@ static void print(const char *fmt, ...) {
// If you are adding new languages, DO NOT change the constant values
// of the previous languages. It will mess up config files which use :set-language!
typedef enum {
- LANG_NONE = 0,
+ LANG_NONE = 0, // avoid using this and use LANG_TEXT instead.
LANG_C = 1,
LANG_CPP = 2,
LANG_RUST = 3,
@@ -200,6 +200,7 @@ typedef enum {
LANG_JSON = 14,
LANG_XML = 15,
LANG_GLSL = 16,
+ LANG_TEXT = 17, // plain text
LANG_COUNT
} Language;