diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-25 21:41:52 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-08-26 13:57:31 +0200 |
commit | b04ef7f6b966c44b12dbc65b17a761ae9313d6c4 (patch) | |
tree | 9bd87075926ae152b51dc93be06d43e4baf537e8 /test/functional/treesitter/highlight_spec.lua | |
parent | 064ecb9ec581ec68f1376cde5ad7f960419b0324 (diff) | |
download | rneovim-b04ef7f6b966c44b12dbc65b17a761ae9313d6c4.tar.gz rneovim-b04ef7f6b966c44b12dbc65b17a761ae9313d6c4.tar.bz2 rneovim-b04ef7f6b966c44b12dbc65b17a761ae9313d6c4.zip |
fix(treesitter): make it get_captures_at_position
Diffstat (limited to 'test/functional/treesitter/highlight_spec.lua')
-rw-r--r-- | test/functional/treesitter/highlight_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/treesitter/highlight_spec.lua b/test/functional/treesitter/highlight_spec.lua index e4ef975d34..4b0bd1eb50 100644 --- a/test/functional/treesitter/highlight_spec.lua +++ b/test/functional/treesitter/highlight_spec.lua @@ -617,6 +617,11 @@ describe('treesitter highlighting', function() -- bold will not be overwritten at the moment [12] = {background = Screen.colors.Red, bold = true, foreground = Screen.colors.Grey100}; }} + + eq({ + {capture='Error', priority='101'}; + {capture='type'}; + }, exec_lua [[ return vim.treesitter.get_captures_at_position(0, 0, 2) ]]) end) it("allows to use captures with dots (don't use fallback when specialization of foo exists)", function() |