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

[Question] Toggle neoterm open when using <Plug>(neoterm-repl-send)? #312

Open
typoon opened this issue Dec 13, 2020 · 1 comment
Open

Comments

@typoon
Copy link

typoon commented Dec 13, 2020

Hi,

If you close the REPL buffer (using either :q or :Tclose) and then use the mapping that calls <Plug>(neoterm-repl-send) or <Plug>(neoterm-repl-send-line) the buffer with the REPL doesn't automatically reopen. Is there any way of doing that?

Thanks for the help!

@typoon
Copy link
Author

typoon commented Dec 13, 2020

I somewhat solved this in the following way:

func! SendCodeOpenNeoterm(type)
  call neoterm#repl#opfunc(a:type)
  exe ":Topen"
endfunc

nmap gx :set opfunc=SendCodeOpenNeoterm<CR>g@

It feels somewhat wrong to me though, since I have to access internal functions of the plugin.
Any better suggestions for it?

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

1 participant