14 Commits (dd250b05d41e16f4e2a8d27270b035125dc27dc5)

Author SHA1 Message Date
Christian Clason dd250b05d4
feat!: update to Neovim 0.7 APIs (#75) 2 years ago
Pedro Castro 13e2d2d63c
feat: add TSNodeUnderCursor (#74)
add `hl-info.show_ts_node({opts})` to show tree-sitter node under cursor, exposed via `:TSNodeUnderCursor`
2 years ago
Christian Clason 7dbcd4d647
fix(playground): show highlight groups (#71) 2 years ago
Santos Gallegos 9df82a27a4
Fix local hl on `:TSHighlightCapturesUnderCursor` (#61)
This code depended on an internal cache that stored the names,
but it was changed to store the id 2460f0a702.

There is `nvim_get_hl_by_id`, but that doesn't return the name (just the
final values of the colors). So, I'm just duplicating this part 6a92a53c02/runtime/lua/vim/treesitter/highlighter.lua (L81-L93)

Fixes https://github.com/nvim-treesitter/playground/issues/60
2 years ago
Stephan Seitz cc663ee53b Improvements for TSHighlightCapturesUnderCursor
- show priority
- show both syntax and tree-sitter if both are enabled
3 years ago
Santos Gallegos 13d597ca10
Autoformat 3 years ago
Folke Lemaitre 0756ea839c fix: dont show general hl if it's the same as the lang specific hl 3 years ago
Folke Lemaitre 9658434355 fix: loop over iterator in for loop instead of while true 3 years ago
Folke Lemaitre 4cf329e6d3 feat: improved TSHighlightCapturesUnderCursor 3 years ago
Stephan Seitz a141bf5c97 Make clear that upper-case captures map directly to vim hl-groups
Ref: https://nvim-treesitter.zulipchat.com/#narrow/stream/252274-plugin.2Fnvim-treesitter/topic/gdscript.20bugs/near/235024462
3 years ago
Steven Sojka 888052eed4 refactor(printer): integrate injected languages
Co-authored-by: Jędrzej Boczar <yendreij@gmail.com>
3 years ago
Stephan Seitz 7082ccb4f4 Fix playground for languagetree API change 4 years ago
Stephan Seitz d68481b4bc feat: speed up TSHighlightCapturesUnderCursor 4 years ago
Stephan Seitz e505c947f9 feat: add `TSHighlightCapturesUnderCursor` to show hl matches under cursor 4 years ago