summaryrefslogtreecommitdiff
path: root/syntax
diff options
context:
space:
mode:
authorStephanie Gredell <s.raide@gmail.com>2026-02-08 13:11:22 -0800
committerStephanie Gredell <s.raide@gmail.com>2026-02-08 17:22:07 -0800
commit17be2bff90a22d8bafc102e3ca1730bb05026841 (patch)
tree2ece5692956be9b03bc4453371fd8f105d8a10b4 /syntax
parent489e132d4aec29970e0981ee12252d3925ad49c3 (diff)
downloada4-17be2bff90a22d8bafc102e3ca1730bb05026841.tar.xz
a4-17be2bff90a22d8bafc102e3ca1730bb05026841.zip
Add ability to reference files in prompt buffer
- type @ in the prompt to fuzzy-search and reference project files, content gets resolved and injected into LLMcontext - moved completion provider logic out of cmp.lua into agents and files domain modules - added completions registry to support multiple trigger characters (# rules, @ files) - added tests for file discovery, fuzzy matching, and the completions registry
Diffstat (limited to 'syntax')
-rw-r--r--syntax/99prompt.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/syntax/99prompt.vim b/syntax/99prompt.vim
new file mode 100644
index 0000000..31e4b7b
--- /dev/null
+++ b/syntax/99prompt.vim
@@ -0,0 +1,14 @@
+" Syntax file for 99 prompt window
+" Highlights #rules in cyan and @files in goldenrod
+
+if exists("b:current_syntax")
+ finish
+endif
+
+syntax match 99RuleRef /#\S\+/
+syntax match 99FileRef /@\S\+/
+
+highlight default 99RuleRef guifg=#00FFFF ctermfg=cyan
+highlight default 99FileRef guifg=#DAA520 ctermfg=178
+
+let b:current_syntax = "99prompt"