-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
When I use hrargs.nvim it highlights where I used the argument, but it remains highlighted when I run treehopper's nodes.
https://github.com/m-demare/hlargs.nvim
I have disabled hlargs when using treehopper for fold, but there is no way to enable it after the move.
Is it possible to issue a User event after completion or pass a callback when treehopper runs?
" current settings
function! s:tree_hopper_fold() abort
lua require('hlargs').disable()
lua require('tsht').nodes()
normal! zf
endfunction
nmap <silent> zf <Cmd>call <SID>tree_hopper_fold()<CR>
" I want to do this setup.
autocmd User TreeHopperEnter lua require('hlargs').disable()
autocmd User TreeHopperLeave lua require('hlargs').enable()
Metadata
Metadata
Assignees
Labels
No labels