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
0198ef4a0c
Pass the query_bufnr explicitly to get_node_text ( #73 )
...
Fixes https://github.com/nvim-treesitter/playground/issues/53
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
787a7a8d44
Merge pull request #56 from dskleingeld/master
...
playground keybindings no longer recursive, fixes #52
3 years ago
dskleingeld
1eca93284f
playground keybindings no longer recursive, fixes #52
3 years ago
Stephan Seitz
deb887b3f4
Merge pull request #50 from theHamsta/hl-info-improvements
...
Improvements for TSHighlightCapturesUnderCursor
3 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
2715d35f27
Query linter: update queries
...
This is to match https://github.com/nvim-treesitter/tree-sitter-query/pull/15
3 years ago
Santos Gallegos
d9a9b44e6d
Playground: check for nodes out of range (EOF)
...
The playground will try to set the cursor
to an invalid position (nvim_win_set_cursor) if the node starts at the EOF mark.
```ruby
def run
a = <<~EOF
end
```
3 years ago
Stephan Seitz
6e0037c974
Merge pull request #46 from stsewd/fix-typo
...
Fix typo
3 years ago
Santos Gallegos
ed84d83a3a
Fix typo
3 years ago
Stephan Seitz
1dcdf85258
Merge pull request #44 from stsewd/hint-how-to-use
...
Hint how to use the query editor
3 years ago
Stephan Seitz
13cf5d3788
Merge pull request #45 from stsewd/avoid-crash
...
Avoid crash: check if the buffer is loaded before calling win_findbuf
3 years ago
Santos Gallegos
d208b7999b
Avoid crash: check if the buffer is loaded before calling win_findbuf
...
Closes https://github.com/nvim-treesitter/playground/issues/33
We should report this to neovim as well
3 years ago
Santos Gallegos
dcbbacf638
Hint how to use the query editor
...
Ref https://github.com/nvim-treesitter/playground/issues/23
3 years ago
Stephan Seitz
520337f02d
Merge pull request #42 from nvim-treesitter/add-ci
...
Add CI checks
3 years ago
Stephan Seitz
a12da3a80a
Merge pull request #43 from stsewd/use-ft-to-lang
...
Use ft_to_lang in guess_query_lang
3 years ago
Santos Gallegos
b1478ed0db
Use ft_to_lang in guess_query_lang
...
This together with https://github.com/nvim-treesitter/nvim-treesitter/pull/1495
will the playground work with ecma and html tags
3 years ago
Santos Gallegos
efaec4d6d7
Fix linter
3 years ago
Santos Gallegos
13d597ca10
Autoformat
3 years ago
Santos Gallegos
cb9af32e45
Add CI checks
3 years ago
Folke Lemaitre
1e02dece0d
Update README.md
3 years ago
Folke Lemaitre
ec04bc90dc
docs: added docs about TSHighlightCapturesUnderCursor
3 years ago
Stephan Seitz
79f71e2bd7
feat: add omnifunc for query filetype
3 years ago
Stephan Seitz
86d3ec6024
Merge pull request #38 from folke/master
...
feat: improved TSHighlightCapturesUnderCursor
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
1bf0f79cb4
Merge pull request #31 from theHamsta/escaped-anonymous-nodes
...
fix: unescape anonymous nodes with escape sequences
3 years ago
Stephan Seitz
946ebc734a
fix: unescape anonymous nodes with escape sequences
...
This will enable the linter to recognize LaTeX commands like
`\usepackage` though it will appear as `"\\usepackage"` in the
query files.
3 years ago
Steven Sojka
d96cef521d
Merge pull request #29 from theHamsta/config-key-fixup
...
Config key fixup
3 years ago
Stephan Seitz
b6e79b53dc
fix: formatting
3 years ago
Steven Sojka
e377ff111e
Merge pull request #28 from theHamsta/configure-keybinding
...
feat: make keybindings configurable and show help on "?"
3 years ago
Steven Sojka
1b34c7c375
Merge pull request #28 from theHamsta/configure-keybinding
...
feat: make keybindings configurable and show help on "?"
3 years ago
Stephan Seitz
1775334cfa
feat: make keybindings configurable and show help on "?"
3 years ago
Stephan Seitz
444eab728e
Merge pull request #25 from steelsojka/bugfix/named-highlights
...
fix(query): get named nodes when not displaying anonymous nodes
3 years ago
Steven Sojka
0fdb07c933
Merge pull request #26 from steelsojka/bugfix/close-buf-window-from-buf-window
...
fix(buf): toggle buf window from tree window
3 years ago
Steven Sojka
c0c0e124a8
fix(buf): toggle buf window from tree window
3 years ago
Steven Sojka
9ab5126041
fix(query): get named nodes when not displaying anonymous nodes
3 years ago
Stephan Seitz
7e373e5706
Merge pull request #21 from nvim-treesitter/fix-assume-lang-tree
...
fix(internal): don't assume there is a root tree
3 years ago
Steven Sojka
a98a028852
fix(internal): don't assume there is a root tree
3 years ago
Steven Sojka
813113d6d7
Merge pull request #20 from nvim-treesitter/avoid-processing-fix
...
refactor(internal): separate rendering from state updates
3 years ago
Steven Sojka
41b574fbb4
refactor(internal): separate rendering from state updates
3 years ago
Steven Sojka
bcd83b5ce6
Merge pull request #17 from nvim-treesitter/fix-node-highlight
...
fix(highlight): fix owning tree highlighting
3 years ago
Steven Sojka
6e5412d04c
fix(highlight): fix owning tree highlighting
3 years ago
Steven Sojka
4a11cf237a
Merge pull request #16 from nvim-treesitter/refactor-lang-tree
...
refactor(printer): integrate injected languages
3 years ago
Steven Sojka
888052eed4
refactor(printer): integrate injected languages
...
Co-authored-by: Jędrzej Boczar <yendreij@gmail.com>
3 years ago