Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Lua/Plugins/txt.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- Nothing, because nothing is highlighted in `.txt` files.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Missing plugin logic to disable .txt highlighting/predictions

The file currently contains only a comment and does not implement any functionality to actually disable syntax highlighting or AI predictions for .txt files. You need to register an empty or no-op plugin for the txt filetype in accordance with the griddycode plugin API—e.g., override the highlighter and predictor hooks or return an empty grammar.

Would you like me to draft a minimal implementation to disable both highlighting and predictions for .txt files?

🤖 Prompt for AI Agents
In Lua/Plugins/txt.lua at line 1, the file lacks implementation to disable
syntax highlighting and AI predictions for .txt files. To fix this, register a
plugin for the txt filetype that overrides the highlighter and predictor hooks
with no-op functions or returns an empty grammar, effectively disabling both
features for .txt files as per the griddycode plugin API.