helix-mirror/helix-term/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
2022-02-25 17:36:54 +09:00
..
commands Close some popups automatically (#1285) 2022-02-23 12:46:12 +09:00
ui Fix 1.60 lints 2022-02-25 13:06:11 +09:00
application.rs Use which to resolve lsp/dap binaries 2022-02-24 11:38:40 +09:00
args.rs Fix bug when launching hx file.rs:10 (#1676) 2022-02-18 12:13:02 +09:00
commands.rs Configurable auto pairs (#1624) 2022-02-25 17:36:54 +09:00
compositor.rs Close some popups automatically (#1285) 2022-02-23 12:46:12 +09:00
config.rs Put some tests behind #[cfg(test)] (#1459) 2022-01-09 00:32:50 +09:00
job.rs Don't use block_on in jobs.finish(), we can .await 2022-02-05 15:05:19 +09:00
keymap.rs feat(commands): command palette (#1400) 2022-02-17 14:03:11 +09:00
lib.rs Assume true color support on Windows 2021-12-14 00:48:45 +09:00
main.rs Allow specifying file start position (#445) 2022-01-23 16:54:03 +09:00