From cd79ebeb58c11881ee6de2b00564eb0b66c9ed44 Mon Sep 17 00:00:00 2001 From: gamma-delta Date: Wed, 3 Jan 2024 20:37:13 -0600 Subject: [PATCH] Add auto-pairs to scheme language support 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. --- languages.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/languages.toml b/languages.toml index 7b4b5b8b5270..a013dab8ce47 100644 --- a/languages.toml +++ b/languages.toml @@ -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" }