Max Brunsfeld
372d2ccb6d
Extract most colors in codebase into theme file. switch to dark
2021-07-30 09:50:28 -07:00
Max Brunsfeld and Nathan Sobo
8b7a314474
Implement bracket matching using queries
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-28 13:09:57 -07:00
bf8eee26f8
Add Buffer::enclosing_bracket_ranges
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
Co-Authored-By: Max Brunsfeld <max@zed.dev >
2021-05-28 19:35:04 +02:00
Antonio Scandurra
0b51e99c6e
Delete stale indents.scm file
2021-05-28 15:11:54 +02:00
Antonio Scandurra
07aeb32ef4
Punt on auto-indentation for now
2021-05-28 10:17:10 +02:00
Max Brunsfeld
79878f20cc
WIP - new approach to autoindent
...
- Indent one row at a time.
- Consider only the innermost match.
2021-05-27 15:05:19 -07:00
Antonio Scandurra
1cd04bd0d1
Rename indent.scm to indents.scm
2021-05-27 11:20:19 +02:00
Max Brunsfeld and Nathan Sobo
7bea3fd2fe
Start on a query-based autoindent system
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-26 17:23:53 -07:00
Antonio Scandurra
9b69cea75a
Replace mod_item with declaration_list for Rust's autoindent
2021-05-26 16:00:01 +02:00
Antonio Scandurra
d38d944fef
Add indent and indent_nodes configs in the language config.toml
2021-05-26 15:45:58 +02:00
Antonio Scandurra
04c7989720
Extract a LanguageConfig and load it from language-dir/config.toml
2021-05-26 10:27:14 +02:00
Max Brunsfeld and Nathan Sobo
c80812c809
Add a few more rust highlighting patterns
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-25 17:42:46 -07:00
Max Brunsfeld and Nathan Sobo
5d2ac3f4e4
Use new Tree-sitter captures API
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-25 16:02:43 -07:00
Max Brunsfeld
8340958b33
Convert query capture indices to style ids
...
* Introduce a Theme struct as a new part of the app's settings
* Store on each Language a ThemeMap, which converts the capture ids
from that language's highlight query into StyleIds, which identify
styles in the current Theme.
* Update `highlighted_chunks` methods to provide StyleIds instead of
capture ids.
2021-05-24 16:44:14 -07:00
2f378be1a8
Introduce LanguageRegistry object
...
* Include it, along with settings in `OpenParams` grouped under a new struct called `AppState`
Co-Authored-By: Antonio Scandurra <me@as-cii.com >
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2021-05-22 12:34:35 +02:00