-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
languages: add svelte support #733
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(By the way, you're missing the final newline on a few of these files).
@@ -0,0 +1,68 @@ | |||
; Special identifiers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these need to be converted into Helix's scopes: https://docs.helix-editor.com/themes.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@archseer Do we want to also add the none
scope?
I've added the newlines, and switched from scm to toml for the indent file. Thank you for the review! |
":" | ||
"/" | ||
"@" | ||
] @punctionation.definition.tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo punctionation
vs. punctuation
. I also think the brackets should be punctuation.bracket
. Not sure about the rest. I'm not familiar with JS/Svelte, so what do the others do? Depending on what it is, we may be able to include another scope for tag
, variable
, or keyword
.
Ok, I just had time to test this, it doesn't work at all. |
LSP: Is the binary in your $PATH? Run helix with the |
binary is in my path
it seems to run actually, it just doesn't display anything. |
It seems to load just fine, are you able to get any completions using ctrl-x in insert mode? Or |
I wasn't aware of |
I've modified the injections to be of the correct format (I think), however those are not working. a svelte file is not being syntax hyghlighted. |
Can you post a sample |
(the normal extension is just .svelte , I added a .txt to enable github upload, feel free to remove the .txt once you've downloaded it) |
Fixed in dd0b15e! It worked on |
The injections didn't work on a style of script attribute for me. Thanks a lot for the help and the time spent on this! |
They don't work for you? |
I rebased this branch on master this morning, made sure I had my branch running locally. |
Make sure you |
cool, let me check. |
Oh no, just realized that can't be it. |
this looks beautiful! ok let me try to build without the flake then. |
Thanks a lot, local compilation did work, it must be a problem with the flake (or more probable, my usage of it). |
I'm opening this prospecive PR just to see if I haven't made anything stupid.
I've added the tree-sitter gitmodule
added all the queries file that were in the tree-sitter repository.
I need to update my nix to include the latest PR that downloads the submodules automatically.
I should have time to test this in the next few days.