Skip to content
Discussion options

You must be logged in to vote

I can't reproduce this unless I switch to a language that already has custom auto-pairs set, for example Rust:

helix/languages.toml

Lines 183 to 199 in 090ed97

[[language]]
name = "rust"
scope = "source.rust"
injection-regex = "rust"
file-types = ["rs"]
roots = ["Cargo.toml", "Cargo.lock"]
auto-format = true
comment-token = "//"
language-servers = [ "rust-analyzer" ]
indent = { tab-width = 4, unit = " " }
[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
'"' = '"'
'`' = '`'

For that case you should add new auto-pairs like _ to that language config.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Indyandie
Comment options

Answer selected by Indyandie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #8897 on November 24, 2023 10:33.