Commit Graph

834 Commits (93ac70684437b2da4708a8e20c60ac31052138b3)

Author SHA1 Message Date
Blaž Hrastnik f24007b30f Improve rust indentation queries
if/if let are already handled by block, and keeping these scopes would
indent else blocks one level too far.
3 years ago
Kirawi df0ed80931 Update dark_plus.toml
Corrects primary selection color and makes matching cursor easier to spot.
3 years ago
Kirawi d84b3a198a Update dark_plus.toml
Didn't realize what `ui.statusline.active` was for. It's needed for view splits.
3 years ago
Blaž Hrastnik dd2903ff10 Dynamically load grammar libraries at runtime 3 years ago
Kirawi 084a8a9522
Rewritten Rust `highlights.scm` (#425)
* rewrote Rust highlights.scm

* wip

* wip

* wip

* wip

* fixed type highlighting

* wip

* rewrite again

* moved operators

* missing newline

* missing newline

* update book

* fix constructor highlighting

* fix constructor highlighting

* fix const highlighting

* better constructor highlighting

* remove dup, bug was my locals.scm file

* fixed docs

* merge

* fixed for highlighting

* add yield

* remove yield

* added yield back

* fixed yield highlighting

* unecessary
3 years ago
Kirawi c7aa7bf4ba
VSCode Dark+ Theme (#414)
* wip

* Add VSCode Dark+ Theme

wip

wip

wip

wip

wip

wip

properly detect constants

add bool

wip

* suggestion

* add variant for c/c++

* fix hexcode error

* removed regex highlight

* fixed constant higlighting

* wip

* add space

* add suggestions

* update theme

* update book

* suggestions

* fix c/c++ enum

* update book
3 years ago
wesh aa70362d20 Add julia support (LSP not working) 3 years ago
Gokul Soumya f909526ebd Update onedark theme
Add colors for matching brace, non primary selections, inactive
statusline
3 years ago
Jakub Bartodziej 79f096963c
Color palettes (#393)
* Enable using color palettes in theme files.

* Add an example theme defined using a gruvbox color palette.

* Fix clippy error.

* Small style improvement.

* Add documentation for the features to themes.md.

* Update runtime/themes/gruvbox.toml

Fix the value of purple0.

Co-authored-by: DrZingo <DrZingo@users.noreply.github.com>

Co-authored-by: DrZingo <DrZingo@users.noreply.github.com>
3 years ago
Ivan Tham 74cc4b4a49
Add default color for cursor match (#370)
* Add default color for cursor match

Not all terminals support dim, for those terminal that does not support
this (konsole, item2, wezterm), users cannot differentiate between match
and primary cursor. So set a color for this.

* Use alacritty dim color for match
3 years ago
wojciechkepka 3b534e17f4 Move themes to runtime/themes, add link from contrib/themes 3 years ago
Ivan Tham a364d6c383 Add latex 3 years ago
Timothy DeHerrera d8df10f295 Add Nix runtime 3 years ago
Corey Powell 35feb614b6 Updated elixir queries to fix crash 3 years ago
Corey Powell 01dd7b570a Restored haskell syntax
It seems to work
3 years ago
notoria f3a243c6cb Rust: Highlight crate namespace, categorize `mut` 3 years ago
notoria b2b2d430ae Rust: Add keyword `async`, match the entire macro 3 years ago
Corey Powell ca042a4bde Added elixir syntax
Using custom fork for now to get around generating the source files
3 years ago
Blaž Hrastnik c2e6b9f506 Add typescript support & ts/js indentation queries 3 years ago
Blaž Hrastnik 8fd8006043 Golang indent queries 3 years ago
Blaž Hrastnik aeabfc55a8 Adjust golang indents yet again 3 years ago
Blaž Hrastnik 67b037050f Adjust rust indents 3 years ago
Blaž Hrastnik a28eaa81a0 Golang indent adjustment 4 years ago
Blaž Hrastnik 094203c74e Update deps, introduce the new tree-sitter lifetimes 4 years ago
Blaž Hrastnik 9edae7e1f8 syntax: golang: Indent type declarations 4 years ago
Blaž Hrastnik 6e03019a2c Adjust highlighting for rust. 4 years ago
Blaž Hrastnik 31d41080ed Add indentation queries for golang. 4 years ago
Blaž Hrastnik 4a9d1163e0 Hacky way to specify indent scopes per language via toml configs.
Can't do it via a scm query nicely because it returns an iterator over
all the matches, whereas we want to traverse the tree ourselves.

Can't extract the pattern data from a parsed query either.

Oh well, toml files for now.
4 years ago
Blaž Hrastnik 77db3599ba Fix C highlighting inconsistencies. 4 years ago
Blaž Hrastnik 305a059f58 Highlight metavariables ($var) inside rust macros. 4 years ago
Blaž Hrastnik dfb1ae2d33 Rust: Highlight 'crate' as a keyword. 4 years ago
Blaž Hrastnik 4e31d1521b Add tree-sitter queries. 4 years ago
Blaž Hrastnik 61872de6c0 queries: rust: highlight number constants correctly. 4 years ago
Blaž Hrastnik 71c06c11cb Import tree sitter queries. 4 years ago