I'm using neovim (with lazyvim), for my daily editor needs.
I've got a lot projects I work on.
I noticed suddenly my code action didn't work anymore.
(Well at least I though that was the case).
After searching, reading, LLM questions I alsmost gave up.
I couldn't get it back to work.
But just now I noticed it just worked fine in another project.
This project had rubocop in the Gemfile.
So I tried placing the rubocop gem in the not working project and that resolved it.
So to allow code actions to work, rubocop needs to be in the gemfile, which is pretty strange, because the rubop-lsp also runs without rubocop in the Gemfile.
And now I RTFM ... and I see it needs to be a project dependency.