Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neovim: Fenced syntax highlighting isn't working #14

Open
rummik opened this issue Nov 27, 2022 · 5 comments
Open

neovim: Fenced syntax highlighting isn't working #14

rummik opened this issue Nov 27, 2022 · 5 comments
Assignees
Labels
bug Something isn't working regression Something used to work and isn't now

Comments

@rummik
Copy link
Owner

rummik commented Nov 27, 2022

Partly due to using tree-sitter instead of patched vim-nix.

It looks like it might just be a matter of updating nvim-treesitter since nvim-treesitter/nvim-treesitter#3842 was merged

@rummik rummik self-assigned this Nov 27, 2022
@rummik rummik added bug Something isn't working regression Something used to work and isn't now labels Nov 27, 2022
@figsoda
Copy link

figsoda commented Nov 29, 2022

I couldn't figure out how to do dynamic injections based on comments, this is what I have so far, but it doesn't work

((comment) @language
  (indented_string_expression (string_fragment) @content) ; this is just a string
  (#offset! @language 0 2 0 -2)
  (#trim! @language))

@rummik
Copy link
Owner Author

rummik commented Nov 29, 2022

My config doesn't seem to function with the existing injections either, so I'm not really sure what's up with it. I assume it's something on my end though

Thanks for your WIP dynamic injections though! Once I get the other injections working on my config I'll have to experiment

@figsoda
Copy link

figsoda commented Nov 29, 2022

if runCommand injections are not working for you, nvim-treesitter/nvim-treesitter#3890 should be able to fix this, others have been working for me so I'm not sure

@rummik
Copy link
Owner Author

rummik commented Nov 29, 2022

Ah, turns out that I was overriding the wrong package, and nixvim was causing some slight interactions. A current checkout of nvim-treesitter does work, sans language hint comments of course

@figsoda
Copy link

figsoda commented Dec 1, 2022

I opened nvim-treesitter/nvim-treesitter#3902 to implement this, adding a directive is the only way I was able to get it working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work and isn't now
Projects
None yet
Development

No branches or pull requests

2 participants