AlexVKO / VimKO

⚭ Advanced Neovim configuration for ruby/python/ops/react development ⚭

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown function: ExecuteRubyMapping

jonatas opened this issue · comments

Hello @AlexVKO ! Long time no see you my friend!

I'm recently exploring the mapping and I just learned I could use !t to run tests on a left pane but I got this error.

Is there any missing library or something I should add. I generally just use your configuration as my default an this is my first time doing it.

I googled but couldn't find the definition of this function.

Screenshot 2023-11-14 at 15 24 50

Hey @jonatas, yeah, good to see you here my friend!

ExecuteRubyMapping is a function from the plugin https://github.com/AlexVKO/vim-mapping-manager/blob/master/lib/vim_mapping_manager/execute_ruby_mapping.rb

If you run in the command mode :UpdateRemotePlugins you should see nvim registering vim_mapping_manager.rb as a plugin like as follows:
Screen Shot 2023-11-14 at 22 01 06

maybe you'll need to install the ruby provider by running gem install neovim, you'd need to check :checkhealth in the command mode.

Bonus

And just a heads up, just like the !t, you can also do !T, which will run the test of the current line, and we have other variations for linting and etc... super useful.

Also, if you run :EditMappings, you should be able to edit the ruby file(you can use ruby code to manipulate the buffer and do anything that you'd be able to in Ruby), and the package vim_mapping_manager will automatically convert this to VIM code for you.

Unfortunately, the public version of my vim config is a bit outdated, but let me know in case it works or if I can assist any further.

Cheers!

Man! thanks a lot!

I'm on Ruby 3.2.2 and here is the output:

remote/host: python3 host registered plugins ['aerojump']
function remote#host#UpdateRemotePlugins[6]..<SNR>126_RegistrationCommands[15]..remote#host#Require[10
]..provider#ruby#Require[8]..provider#Poll, line 7
Vim(if):Error invoking 'poll' on channel 7:^@Invalid channel: 7
function remote#host#UpdateRemotePlugins[6]..<SNR>126_RegistrationCommands[15]..remote#host#Require[10
]..provider#ruby#Require[8]..provider#Poll, line 17
Failed to load ruby host. You can try to see what happened by starting nvim with $NVIM_RUBY_LOG_FILE s
et and opening the generated log file. Also, the host stderr is available in messages.
remote/host: generated rplugin manifest: /Users/jonatasdp/.local/share/nvim/rplugin.vim
Press ENTER or type command to continue

I got to run CheckHealth!

Ruby provider (optional) ~
- Ruby: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
- Host: /Users/jonatasdp/.rbenv/shims/neovim-ruby-host
- OK Latest "neovim" gem is installed: 0.9.1

Seems fine. Tried to update neovim:

Warning: nvim 0.9.4 already installed

Tried to rbenv rehash but still saying the host is not available. I'll try to follow later. If you have any other fast ideas, I'll try as well 😂

Cheers!