Skip to content

Commit

Permalink
Add auto-pairs to scheme language support (helix-editor#9232)
Browse files Browse the repository at this point in the history
Currently, typing a single quote in a `.scm` file "helpfully" auto-
completes a closing quote. This is because there is no auto-pairs
section in the languages.toml. This commit adds that.
  • Loading branch information
gamma-delta authored and Vulpesx committed Jun 7, 2024
1 parent 24c0f55 commit 5257458
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1914,6 +1914,12 @@ shebangs = ["scheme", "guile", "chicken"]
comment-token = ";"
indent = { tab-width = 2, unit = " " }

[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'

[[grammar]]
name = "scheme"
source = { git = "https://github.com/6cdh/tree-sitter-scheme", rev = "af3af6c9356b936f8a515a1e449c32e804c2b1a8" }
Expand Down

0 comments on commit 5257458

Please sign in to comment.