Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to set a callback to run after the execute #24

Open
yuki-yano opened this issue Aug 31, 2022 · 1 comment
Open

I want to set a callback to run after the execute #24

yuki-yano opened this issue Aug 31, 2022 · 1 comment

Comments

@yuki-yano
Copy link

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

CleanShot 2022-08-31 at 15 32 07

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()
@yuki-yano yuki-yano changed the title I want to set a callback to run after the move. I want to set a callback to run after the execute Aug 31, 2022
@mfussenegger
Copy link
Owner

Sounds okay to me to add a callback to the nodes opts. If you want create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants