1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-06-10 10:46:04 +02:00
Commit Graph

815 Commits

Author SHA1 Message Date
Jan Scheer 91da0dc172
Update nightfox theme (#7061)
* theme: nightfox - fix subselection highlighting

This fixes an issue with subselect highlighting on the same line as
reported here: https://github.com/helix-editor/helix/discussions/5158

* theme: nightfox - update bufferline colors

This uses `ui.bufferline` to make it easier to distinguish
between (in-)active tabs/buffers.
2023-05-18 03:16:25 +02:00
lefp 06d7f5d100
Add comment injections for Odin (#7027) 2023-05-12 16:53:07 +02:00
Vitalii Solodilov 5938e2c0dc
fix: update upstream tree-sitter-dockerfile (#6895)
* fix: update upstream tree-sitter-dockerfile

Fixes: #6797

* fix: review

* fix: review
2023-05-12 03:29:06 +02:00
Ollie Charles 8424f387b5
Remove `tree-sitter-cabal` (#6996) 2023-05-09 21:31:22 +02:00
Chirikumbrah 3fb0562e7b
Update dracula menu colors (#6987) 2023-05-08 19:12:15 +02:00
Gagan Janjua c6228825fd
Add Amberwood theme (#6924) 2023-05-03 10:22:54 -05:00
Chirikumbrah 2701781db7
Dracula theme: change variable and menu colors (#6855) 2023-05-01 23:51:35 +02:00
Rafael Madriz efd09b6c7c
tutor: Delete space between shorthand (#6920) 2023-04-30 23:35:34 +02:00
Rafael Madriz 5dcc891996
tutor: Trim trailing white space (#6919) 2023-04-30 14:26:38 -05:00
0rphee f2ccc03332 [Theme - noctis] Change color for whitespace rendering and indent guides 2023-04-30 09:44:26 +09:00
0rphee 96720e7b84 [Theme - noctis] Refine multiple cursor highlighting
Improve clarity when using multiple cursors
2023-04-30 09:44:26 +09:00
Timothy DeHerrera 9c6c63a2be
inject language based on file extension & shebang (#3970)
* inject language based on file extension

Nodes can now be captured with "injection.filename". If this capture
contains a valid file extension known to Helix, then the content will
be highlighted as that language.

* inject language by shebang

Nodes can now be captured with "injection.shebang". If this capture
contains a valid shebang line known to Helix, then the content will
be highlighted as the language the shebang calls for.

* add documentation for language injection

* nix: fix highlights

The `@` is now highlighted properly on either side of the function arg.

Also, extending the phases with `buildPhase = prev.buildPhase + ''''`
is now highlighted properly.

Fix highlighting of `''$` style escapes (requires tree-sitter-nix bump)

Fix `inherit` highlighting.

* simplify injection_for_match

Split out injection pair logic into its own method to make the overall
flow easier to follow.

Also transform the top-level function into a method on a
HighlightConfiguration.

* markdown: add shebang injection query
2023-04-28 18:21:34 +09:00
ap29600 9cdc6b2e8a
Change Odin grammar to `ap29600/tree-sitter-odin` (#6766)
* Change Odin grammar to `ap29600/tree-sitter-odin`

The previously adopted grammar, `MineBill/tree-sitter-odin`, is unmaintained and mentions my repository as an alternative source.

* update queries

* docgen

* fix queries

* Update runtime/queries/odin/highlights.scm

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

* remove `ERROR` query for `odin`

* track the latest rev in `ap29600/tree-sitter-odin`

* runtime/queries/odin/highlights.scm: update rune highlight class

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>

---------

Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-04-27 16:32:21 +02:00
Cole Helbling 6dd5054da4
Highlight sqlx's `query_scalar{,_unchecked}` macros as SQL (#6793)
* Highlight sqlx's `query_scalar{,_unchecked}` macros as SQL

* Update injections.scm

* fixup copy-pasta
2023-04-27 14:37:17 +09:00
Daniel Martí e7f25d88ca
Avoid extra indentation on Go switches (#6817)
Unlike other languages, in Go, switches themselves are not indented;
it's just each case body which is indented by one level:

   switch foo {
   case "bar":
      baz()
   }

As such, we shouldn't `@indent` for type_switch_statement nor
expression_switch_statement, as otherwise inserted lines show up as:

   switch foo {
      // inserted with "o"
   case "bar":
         // inserted with "o"
      baz()
   }

With the fix, the inserted lines are indented properly:

   switch foo {
   // inserted with "o"
   case "bar":
      // inserted with "o"
      baz()
   }

I also verified that indentation on selects similarly works well.

Thanks to Triton171 for helping with this fix.
2023-04-25 18:05:23 -05:00
Paul Lange 78088ac185
Ayu dark improvements (#6622)
* theme(ayu_dark): Differentiate primary cursor

* theme(ayu_dark): Color statusline mode field

* theme(ayu): Adapt other ayu themes as well
2023-04-21 12:53:04 +09:00
Chirikumbrah 2342807364
another refactoring of dracula theme (#6767) 2023-04-21 12:51:47 +09:00
karei 7607727483 Add `inlay-hint` colours to Kanagawa
Makes the LSP hints more legible against the background colour
and more in line with the normal colours in the theme.
2023-04-16 19:49:51 +02:00
dylrich 523e9e4573 ferra: fix ruler overriding foreground style
Ferra's current ruler styling overrides the foreground style, which is
an odd look only for characters in the ruler column. This commit removes
the foreground styling for the ruler rule. This is more in line with
what other themes do for the ruler.
2023-04-16 18:32:56 +02:00
Matthew Toohey 99a8b6159c Fix go locals query for var_spec identifiers 2023-04-16 18:32:00 +02:00
VuiMuich 4cdba7cccd
Add standalone language support for `just` (#6453)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-04-14 17:03:21 +02:00
John Careaga 78e8066c3e Replace 'Visual' (mode) with 'Select' in tutor 2023-04-14 16:16:39 +02:00
Farzin bb27542199
Fix python highlights to support single character and alphanumeric constant identifier (#6751) 2023-04-14 09:34:40 +09:00
Jesús González bff7fc8695
Add inlay hints styling to darcula theme (#6732)
* Add inlay hints coloring for darcula theme

* Add whitespace

---------

Co-authored-by: Ivan Tham <pickfire@riseup.net>
2023-04-13 09:27:12 +08:00
Michael 161fef2166
Add DTD language support (#6644)
- Added syntax highlighting for the DTD subset of the XML spec.
- Included .dtd and .ent as common file extensions
2023-04-12 15:28:51 -05:00
lefp fff8543b58
Add OpenCL tree-sitter and LSP config (#6473) 2023-04-12 14:42:41 -05:00
Matouš Dzivjak 70de5026b8
feat(languages): Support markdoc (#6432)
Add basic support for [markdoc](https://markdoc.dev/).

For language server, see: https://github.com/markdoc-extra/markdoc-ls
For tree sitter, see: https://github.com/markdoc-extra/tree-sitter-markdoc
2023-04-12 10:28:03 -05:00
Farzin fed5e6e646
Highlight C/C++ escape sequences (#6724) 2023-04-12 09:55:22 -05:00
Chirikumbrah f6d65cf089
Refactor dracula theme (#6552) 2023-04-12 09:38:15 -05:00
Clément Delafargue 3e2eca0db8
tree-sitter(haskell): use quasiquoters as an injection point (#6474)
Similar to tagged templates in JS, quasiquoters allow to embed external
languages in haskell, so it makes sense to treat them as an injection
point.
2023-04-12 09:36:57 -05:00
Ollie Charles deab323c28
Update tree-sitter-haskell (#6317) 2023-04-12 09:35:01 -05:00
basbebe 1421b67a4c Everforest theme: Style inlay-hints and wrap indicator 2023-04-12 09:32:42 -05:00
basbebe bfcc4c3795 Everforest: Fix keywords and types 2023-04-12 09:32:42 -05:00
basbebe 9248de8780 Adjust everforest to resemble original more closely
Adjust palettes and assignments:

Color palettes of upstream everforest where tweaked since creation of this port:
- https://github.com/sainnhe/everforest/pull/108
- https://github.com/sainnhe/everforest/pull/109

These adjustments move the helix everforest theme closer to the dcocumented
 upstream vim theme
2023-04-12 09:32:42 -05:00
Ollie Charles 92c5f5f18c
Initial Cabal language support (#6485) 2023-04-12 08:38:11 -05:00
Constantin Angheloiu d5fec302c9
base16_transparent: Highlight selected item state (#6716)
Increase visibility of selected file in file picker
 
https://asciinema.org/a/DBaZ5zjaYrKlXDSAVH8THVZg4
2023-04-12 10:02:14 +09:00
Michael Davis 686a1e2f31
Update tree-sitter-git-commit (#6692)
Trailers are now supported, for example 'Co-authored-by' or
'Signed-off-by'. Commits are also now recognized in message bodies.
2023-04-11 00:52:03 +09:00
not e72ad1e731
theme(rose-pine): Improve whitespace and search matches colors (#6679)
* feat: make whitespace characters more readable

* feat: make search matches more discernable

* fix: reduce importance of whitespace characters

* feat: add background to ui.text.focus

https://github.com/rose-pine/helix/pull/4

Co-authored-by: Iorvethe <58810330+Iorvethe@users.noreply.github.com>
2023-04-10 10:14:48 +09:00
Ivan Tham 76825c7b66
Fix ayu theme markup unreadable bg (#6538)
* Fix ayu theme markup unreadable bg

* Add modifiers for markup
2023-04-09 14:26:18 -05:00
Arnar 6dabd36491
Update gleam grammar (#6641) 2023-04-09 14:23:01 -05:00
Jan Scheer 25858ec2e3
themes: add inlay-hint to nightfox (#6655) 2023-04-08 21:18:33 +09:00
karei 1148ce1fd9
Add support for Robot Framework files (#6611)
* Add support for Robot Framework files

* Run docgen
2023-04-07 08:19:48 +08:00
Danillo Melo 3dd715a115
Update Ruby Highlights (#6587)
* update ruby highlights

* Updated SQL injection.scm

* Move private, public, protected to builtin methods
2023-04-07 00:37:45 +08:00
Clara Hobbs 4b32b544fc
Add textobject queries for Julia (#6588)
* Add textobjects queries for Julia

* Update docs for Julia textobject queries
2023-04-07 00:35:05 +08:00
Casper Rogild Storm 7ce52e5b2c
Added `ferra` theme (#6619)
* Added ferra theme

* Updated with author information

* Conform to themelint
2023-04-07 00:30:47 +08:00
Erasin Wang c22ebfe62e
Add Hurl Support (#6450)
* Add http Support

It's like [vscode-restclient](https://github.com/Huachao/vscode-restclient)

- https://github.com/erasin/tree-sitter-http/tree/main/tests

* Add Hurl Support
2023-04-07 00:26:41 +08:00
Gyeongwan Koh 951e8686e8
Colorize inlay hints in the boo_berry theme (#6625) 2023-04-06 11:18:39 -05:00
Anton Romanov 531b745c54
[theme][zenburn] set inlay hint to comment style (#6593) 2023-04-04 17:11:09 -05:00
Constantin Angheloiu 01b70762fd
Dim pane divider color in base16_transparent theme (#6534) 2023-04-04 14:47:23 -05:00
Bertrand Bousquet 2f4b9a47f3
Update Varua theme for inlay hints (#6589) 2023-04-04 12:34:25 -05:00