sharksforarms / sharksforarms.github.io

Home Page:https://sharksforarms.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to select code actions

zbraniecki opened this issue · comments

Thank you so much for your guide! I just followed it and my experience of working in Rust is in NeoVim 0.5 is now much better than what I had with VS Code!

The most common feature I miss is ability to populate a trait. I know that rust-analyzer has an intent for that, but I don't remember where it is, how it's called or how to implement the binding.

What I'm talking about is that when I have to impl PartialEq, Display etc. I'd love to be able to just say impl Display for X and somehow get the body of that populated with a template.

A shortcut for that would be a lifesaver!

(similarly, intent to populate missing match arms would be great!)

Yes! So like this:

nnoremap <silent> ga    <cmd>lua vim.lsp.buf.code_action()<CR>

Peek 2020-09-29 14-22

woa! yes!! Thank you :D

You didn't add it to your tutorial. Is there a reason you don't want to?

I took what was suggested in :help lsp I'll update it soon :)