You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/book/src
Skyler Hawthorne a494f47a5d
Configurable auto pairs (#1624)
* impl auto pairs config

Implements configuration for which pairs of tokens get auto completed.

In order to help with this, the logic for when *not* to auto complete
has been generalized from a specific hardcoded list of characters to
simply testing if the next/prev char is alphanumeric.

It is possible to configure a global list of pairs as well as at the
language level. The language config will take precedence over the
global config.

* rename AutoPair -> Pair

* clean up insert_char command

* remove Rc

* remove some explicit cloning with another impl

* fix lint

* review comments

* global auto-pairs = false takes precedence over language settings

* make clippy happy

* print out editor config on startup

* move auto pairs accessor into Document

* rearrange auto pair doc comment

* use pattern in Froms
3 years ago
..
generated Add kotlin language (#1689) 3 years ago
guides Add object.movement for tree-sitter navigation 3 years ago
SUMMARY.md Auto generate docs for language support 3 years ago
commands.md docs: Auto generate command list 3 years ago
configuration.md Configurable auto pairs (#1624) 3 years ago
from-vim.md Improve docs, fix up a few highlight scopes 3 years ago
hooks.md Add book/ (mdbook based user guide) 4 years ago
install.md Add instructions for Fedora Linux (#1270) 3 years ago
keymap.md Add docs for tree-sitter based navigation 3 years ago
lang-support.md Auto generate docs for language support 3 years ago
languages.md feat(lsp): configurable diagnostic severity (#1325) 3 years ago
remapping.md Update book to include typable command remapping (#1240) 3 years ago
themes.md Allow separate styles for markup headings (#1618) 3 years ago
usage.md Add object.movement for tree-sitter navigation 3 years ago