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

Calling a LivePlugin function from Ideavim? #189

Open
MostHated opened this issue Oct 8, 2024 · 1 comment
Open

Calling a LivePlugin function from Ideavim? #189

MostHated opened this issue Oct 8, 2024 · 1 comment

Comments

@MostHated
Copy link

MostHated commented Oct 8, 2024

Hey there,
I love the idea of this plugin but, unfortunately, I know little about Kotlin/IJ plugins at this moment. Getting my feet wet with this plugin, though.

I was wondering if it were possible to call a plugin function from ideavim? I know you can use :action/<Action> for built-in ide functions and such but then I am not exactly sure what I would need to call (or if it's even possible) to be able to get to a plugin via Vim. For simplicity, using the ide-actions example from this repo, then the 'hello world' action, what might one put in ideavim.rc for this?

Thanks,
-MH

@dkandalov
Copy link
Owner

Hi.

Just to clarify the terminology, I think when you say "function" you probably mean "action" using IntelliJ terms 🤔

I don't use ideavim, but my guess would be that the syntax is :action/<ActionId>, so in case of hello world example https://github.com/dkandalov/live-plugin/blob/master/plugin-examples/kotlin/ide-actions/plugin.kts#L18 the action id is "Hello World".

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