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/helix-core/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
..
increment Replace tendril with smartstring 3 years ago
auto_pairs.rs Configurable auto pairs (#1624) 3 years ago
chars.rs Fix Clippy lints in tests (#1563) 3 years ago
comment.rs Specify capacity on toggle_line_comments 3 years ago
config.rs Refactor language config loading (#1658) 3 years ago
diagnostic.rs feat(lsp): configurable diagnostic severity (#1325) 3 years ago
diff.rs Fix Clippy lints in tests (#1563) 3 years ago
graphemes.rs fix: ensure_grapheme_boundary_next_byte needs to index at valid char 3 years ago
history.rs Fix Clippy lints in tests (#1563) 3 years ago
indent.rs Configurable auto pairs (#1624) 3 years ago
lib.rs Refactor language config loading (#1658) 3 years ago
line_ending.rs Fix Clippy lints in tests (#1563) 3 years ago
macros.rs Split parts of helix-term into helix-view. 4 years ago
match_brackets.rs Fix match brackets comment (#1346) 3 years ago
movement.rs Add object.movement for tree-sitter navigation 3 years ago
object.rs add select_next_sibling and select_prev_sibling commands (#1495) 3 years ago
path.rs fix: Expand tilde first, then deal with relative paths 3 years ago
position.rs Allow specifying file start position (#445) 3 years ago
register.rs Show infobox with register contents 3 years ago
search.rs Switch to a cleaner range-head moving abstraction. 3 years ago
selection.rs Fix Clippy lints in tests (#1563) 3 years ago
shellwords.rs Open files with spaces in filename, allow opening multiple files (#1231) 3 years ago
state.rs Reduce State use a bit further 3 years ago
surround.rs Fix Clippy lints in tests (#1563) 3 years ago
syntax.rs Configurable auto pairs (#1624) 3 years ago
textobject.rs Add object.movement for tree-sitter navigation 3 years ago
transaction.rs Replace tendril with smartstring 3 years ago