How do you get the AST highlighted in visual mode like in the demo video?
llllvvuu opened this issue · 3 comments
https://github.com/ziontee113/syntax-tree-surfer#navigate-around-your-document-based-on-treesitters-abstract-syntax-tree-step-into-step-out-step-over-step-back it's show when random_array
is highlighted
Mine just looks like this:
Screen.Recording.2023-07-17.at.8.44.18.PM.mov
You can use
-- Visual Selection from Normal Mode
vim.keymap.set("n", "vx", '<cmd>STSSelectMasterNode<cr>', opts)
vim.keymap.set("n", "vn", '<cmd>STSSelectCurrentNode<cr>', opts)```
to achieve that.
So it's supposed to show the AST indicators when pressing vn
but not when pressing V
?
Even with STSSelectCurrentNode
I got only the selection/range but not the AST indicators. Do you know which part is repsonsible for those indicators?
I couldn't find it here:
syntax-tree-surfer/lua/syntax-tree-surfer/init.lua
Lines 51 to 64 in 8b707ab
EDIT: maybe just the colorscheme need to set bgcolor, let me try...
OK, I figured it out, it's a feature of gruvbox: gruvbox-community/gruvbox#126