Skip to content

Commit

Permalink
Disable todotxt grammar for files named "todo.txt"
Browse files Browse the repository at this point in the history
The file name is too common and can unintentionally conflict. Users
should manually opt in.

Fixes helix-editor#10113
  • Loading branch information
archseer authored and Schuyler Mortimer committed Jul 10, 2024
1 parent 278e602 commit 9cf1a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3135,7 +3135,8 @@ source = { git = "https://github.com/kylegoetz/tree-sitter-unison", rev = "1f505
[[language]]
name = "todotxt"
scope = "text.todotxt"
file-types = [{ glob = "todo.txt" }, { glob = "*.todo.txt" }, "todotxt"]
# glob = "todo.txt" is too common and can conflict regular files, define in user config if necessary
file-types = [{ glob = "*.todo.txt" }, "todotxt"]
formatter = { command = "sort" }
auto-format = true

Expand Down

0 comments on commit 9cf1a6e

Please sign in to comment.